Skip to contentSkip to conversation

chardev: GPIO common access methods: repair non-kernel-doc comment

PATCH In review Randy Dunlap 4 participants 4 messages Nov 23 – Nov 27 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 chardev: GPIO common access methods: repair non-kernel-doc comment

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")

---
v2: rebase & resend;
add Ack from Jim Cromie;
add Linus and Bartosz

Cc Jim Cromie <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
 include/linux/nsc_gpio.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/nsc_gpio.h +1 -1
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-/**
+/*
    nsc_gpio.c
 
    National Semiconductor GPIO common access methods.
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 10 lines · Randy Dunlap

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

Quoted 3 lines
Fixes fe3a168a2ce1 ("[PATCH] chardev: GPIO for SCx200 & PC-8736x: add gpio-ops vtable")

For the patch:

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

#2 lore raw
In reply to Randy Dunlap
Quoted 11 lines · Randy Dunlap

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

[...]

So this isn't really a header for a GPIOLIB-based driver and technically outside of my jurisdiction but it's also not seen any changes for 20 years so let me take it and see if anyone yells.

[1/1] chardev: GPIO common access methods: repair non-kernel-doc comment

      https://git.kernel.org/brgl/c/d4dc896fa2bdfd7d1a78911598a0fa3e3c831d92

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>
#3 lore raw
Quoted 13 lines · Bartosz Golaszewski
Quoted 10 lines · Randy Dunlap

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

Quoted 6 lines
Quoted 1 line

[...]

So this isn't really a header for a GPIOLIB-based driver and technically outside of my jurisdiction but it's also not seen any changes for 20 years so let me take it and see if anyone yells.

as to your GPIOLIB rewrite, I have the board buried somewhere, I'll try to get it back together and running, and test your rewrite. just not real soon.

Quoted 6 lines

[1/1] chardev: GPIO common access methods: repair non-kernel-doc comment

      https://git.kernel.org/brgl/c/d4dc896fa2bdfd7d1a78911598a0fa3e3c831d92

Best regards,
--
Bartosz Golaszewski <[email protected]>