[PATCH v2] chardev: GPIO common access methods: repair non-kernel-doc comment

Randy Dunlap posted 1 patch 9 hours ago
include/linux/nsc_gpio.h |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] chardev: GPIO common access methods: repair non-kernel-doc comment
Posted by Randy Dunlap 9 hours ago
Change a "/**" non-kernel-doc comment to a plain C comment "/*"
to avoid 21 warnings like these:

Warning: ./include/linux/nsc_gpio.h:2 Cannot find identifier on line:
   nsc_gpio.c
Warning: ./include/linux/nsc_gpio.h:4 Cannot find identifier on line:
   National Semiconductor GPIO common access methods.
Warning: ./include/linux/nsc_gpio.h:6 Cannot find identifier on line:
   struct nsc_gpio_ops abstracts the low-level access

Fixes: fe3a168a2ce1 ("[PATCH] chardev: GPIO for SCx200 & PC-8736x: add gpio-ops vtable")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Jim Cromie <jim.cromie@gmail.com>
---
v2: rebase & resend;
    add Ack from Jim Cromie;
    add Linus and Bartosz

Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-gpio@vger.kernel.org
Cc: Linus Walleij <linusw@kernel.org>
Cc: Bartosz Golaszewski <brgl@kernel.org>

 include/linux/nsc_gpio.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20261120.orig/include/linux/nsc_gpio.h
+++ linux-next-20261120/include/linux/nsc_gpio.h
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-/**
+/*
    nsc_gpio.c
 
    National Semiconductor GPIO common access methods.
Re: [PATCH v2] chardev: GPIO common access methods: repair non-kernel-doc comment
Posted by Linus Walleij 2 hours ago
On Mon, Nov 23, 2026 at 1:45 AM Randy Dunlap <rdunlap@infradead.org> wrote:

> Change a "/**" non-kernel-doc comment to a plain C comment "/*"
> to avoid 21 warnings like these:
>
> Warning: ./include/linux/nsc_gpio.h:2 Cannot find identifier on line:
>    nsc_gpio.c
> Warning: ./include/linux/nsc_gpio.h:4 Cannot find identifier on line:
>    National Semiconductor GPIO common access methods.
> Warning: ./include/linux/nsc_gpio.h:6 Cannot find identifier on line:
>    struct nsc_gpio_ops abstracts the low-level access
>
> Fixes: fe3a168a2ce1 ("[PATCH] chardev: GPIO for SCx200 & PC-8736x: add gpio-ops vtable")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Acked-by: Jim Cromie <jim.cromie@gmail.com>

For the patch:
Acked-by: Linus Walleij <linusw@kernel.org>

For this stuff's existance:

$ git grep 'nsc_gpio\.h'
drivers/char/nsc_gpio.c:#include <linux/nsc_gpio.h>
drivers/char/pc8736x_gpio.c:#include <linux/nsc_gpio.h>
drivers/char/scx200_gpio.c:#include <linux/nsc_gpio.h>
drivers/leds/leds-net48xx.c:#include <linux/nsc_gpio.h>

Blaeh, we need to get this "necessarily different" stuff in line.

I'm not blaming anyone because it may very well predate gpiolib,
what could they do.

I'll analyze.

Yours,
Linus Walleij