Message ID | 20231205225324.32362-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3752640vqy; Tue, 5 Dec 2023 14:53:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUF0q3ndjXRLjbQL7U+m9xk3/7r4KEHMW3qLPpp8RxcjKD1V1fiIjEOtOXtRWV70d7YyVv X-Received: by 2002:a05:6870:b86:b0:1fb:75a:de57 with SMTP id lg6-20020a0568700b8600b001fb075ade57mr8725346oab.69.1701816838678; Tue, 05 Dec 2023 14:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701816838; cv=none; d=google.com; s=arc-20160816; b=Ld6aj500I2D7TNuL2l+yJ/04qLGTTNwdHE7dxu6BJc7vGOYy/B48DMZ3NyfOdsCXwm +TWn8bJso0zuzc+B16pITCY6+/AlfR6Wad0demub8JFjkZliY41pe1/vhu0iwnQhqxUb D1yshm9/hCE0UF6uGZX5YPlHc/iklGlTtXnSDNDZ66LLaxIgonCLWo8oBmmRMOv0B0Ml 9D4xtAv+0gKQxY3XWhGLpCqLx6mZtDqCiVlgvqI2YqVy5BjRF6LCJbnRlxCEU0M/NEP7 fqCqBl7QkKo1hDNRAcUdqpznCOuC0f9Imt+AbCAvsvZjStC8JrBG3RDwAnXabeDruEJd bGlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zE9h+EG2yFCT+gKKsKeNhjviqRADwezmTT11FG2cDbM=; fh=dqKB0UHUQicKlHC/V+j2XrJY0Cae7Wzu/QfBcstn3jE=; b=gkKiUsv237f9WsyVI7us8KWmB5bzucLaaNrZcPLalLoKKXfe5lauLvTJ7oNRiyiGz/ qr83qsihbGe1waxsQAuREAuVDVLO3m74Fl4FwSH5JH/1+d2qhiO/Xcch58TfxpSw3uEf cn9ONd7GZs56fqDk5UAa5HaydqhoGwFUmFXZ4s3+YWFQN4HLbPftRCGnlHFtaXziyqCj Fo2Yy87Ax7dZUEXV0urfCt05vUKxFx09Z7qMkQZd+eRrZlja1dPGTze3R1F8Tv1s7gSB pOvQ6d+JFcOsc8LRzFQfzyE0c4+4xwez/R21z1JkN0KJYdcGasxkTlqLfduogR737qaC xE5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qqXDv1UF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a2-20020a63e842000000b005c62393c133si10213718pgk.795.2023.12.05.14.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 14:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qqXDv1UF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BCBE582A41DB; Tue, 5 Dec 2023 14:53:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346276AbjLEWxc (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Tue, 5 Dec 2023 17:53:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346254AbjLEWxb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 5 Dec 2023 17:53:31 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03698B5 for <linux-kernel@vger.kernel.org>; Tue, 5 Dec 2023 14:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=zE9h+EG2yFCT+gKKsKeNhjviqRADwezmTT11FG2cDbM=; b=qqXDv1UFaZLW6AULkV8PltqRwr fVIXNr9vBTWVfDI+tRUyABXUK3XjmUW4v5ntq1YjVUMvLjhBQHBxpYeQSaxPO0WCzYtmjdQwt9fCY OnEOkfzb6yR2qJMTCRTZaUnGN/5Or8bfjXhWUW3C7c7Nc3aipAb8K8qiY2zS8vmvVHvu5oyiR1GAl sULWedTFq6gw16SugXVJuVdNCkYj90eYGQ+oHWi91mAFS+3/lWDT5+iUcnCK8gkoQXlK897rFvqKW jozTd849VkZ7R19JpzJKY7/2XO30PpWRPQ43n9artfLtEPvkXwYS6meSpBTNfFpVodWugVKaWtuVX M+Cj6o4w==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAeI9-008Ydu-1R; Tue, 05 Dec 2023 22:53:37 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, =?utf-8?q?Arve_Hj=C3=B8nne?= =?utf-8?q?v=C3=A5g?= <arve@android.com>, Todd Kjos <tkjos@android.com>, Martijn Coenen <maco@android.com>, Joel Fernandes <joel@joelfernandes.org>, Christian Brauner <christian@brauner.io>, Carlos Llamas <cmllamas@google.com>, Suren Baghdasaryan <surenb@google.com> Subject: [PATCH] android: binder: fix a kernel-doc enum warning Date: Tue, 5 Dec 2023 14:53:18 -0800 Message-ID: <20231205225324.32362-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 14:53:55 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784484293394084294 X-GMAIL-MSGID: 1784484293394084294 |
Series |
android: binder: fix a kernel-doc enum warning
|
|
Commit Message
Randy Dunlap
Dec. 5, 2023, 10:53 p.m. UTC
Add kernel-doc notation for @LOOP_END to prevent a kernel-doc
warning.
binder_alloc_selftest.c:76: warning: Enum value 'LOOP_END' not described in enum 'buf_end_align_type'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Martijn Coenen <maco@android.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Christian Brauner <christian@brauner.io>
Cc: Carlos Llamas <cmllamas@google.com>
Cc: Suren Baghdasaryan <surenb@google.com>
---
drivers/android/binder_alloc_selftest.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Tue, Dec 05, 2023 at 02:53:18PM -0800, Randy Dunlap wrote: > Add kernel-doc notation for @LOOP_END to prevent a kernel-doc > warning. > > binder_alloc_selftest.c:76: warning: Enum value 'LOOP_END' not described in enum 'buf_end_align_type' > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: Arve Hjønnevåg <arve@android.com> > Cc: Todd Kjos <tkjos@android.com> > Cc: Martijn Coenen <maco@android.com> > Cc: Joel Fernandes <joel@joelfernandes.org> > Cc: Christian Brauner <christian@brauner.io> > Cc: Carlos Llamas <cmllamas@google.com> > Cc: Suren Baghdasaryan <surenb@google.com> > --- > drivers/android/binder_alloc_selftest.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff -- a/drivers/android/binder_alloc_selftest.c b/drivers/android/binder_alloc_selftest.c > --- a/drivers/android/binder_alloc_selftest.c > +++ b/drivers/android/binder_alloc_selftest.c > @@ -72,6 +72,10 @@ enum buf_end_align_type { > * buf1 ]|[ buf2 | buf2 | buf2 ][ ... > */ > NEXT_NEXT_UNALIGNED, > + /** > + * @LOOP_END: The number of enum values in &buf_end_align_type. > + * It is used for controlling loop termination. > + */ > LOOP_END, > }; > 'LOOP_END' seems self explanatory to me but if this helps to clear the warning then why not. Thanks Randy! Acked-by: Carlos Llamas <cmllamas@google.com>
diff -- a/drivers/android/binder_alloc_selftest.c b/drivers/android/binder_alloc_selftest.c --- a/drivers/android/binder_alloc_selftest.c +++ b/drivers/android/binder_alloc_selftest.c @@ -72,6 +72,10 @@ enum buf_end_align_type { * buf1 ]|[ buf2 | buf2 | buf2 ][ ... */ NEXT_NEXT_UNALIGNED, + /** + * @LOOP_END: The number of enum values in &buf_end_align_type. + * It is used for controlling loop termination. + */ LOOP_END, };