* [PATCH] staging: iio: frequency: remove incorrect kernel-doc markings in dds.h
@ 2026-07-12 22:30 Babanpreet Singh
2026-07-13 0:35 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Babanpreet Singh @ 2026-07-12 22:30 UTC (permalink / raw)
To: Jonathan Cameron
Cc: David Lechner, Nuno Sá, Andy Shevchenko, Greg Kroah-Hartman,
linux-iio, linux-staging, linux-kernel, Babanpreet Singh
The 13 comment blocks in dds.h noting which sysfs attribute each
convenience macro creates are opened with the kernel-doc /** marker,
but they are not kernel-doc: there is no identifier to document.
Running kernel-doc on the file emits 103 warnings:
$ scripts/kernel-doc -none drivers/staging/iio/frequency/dds.h
Warning: drivers/staging/iio/frequency/dds.h:10 Cannot find
identifier on line:
* /sys/bus/iio/devices/.../out_altvoltageX_frequencyY
The header is not scanned during normal builds (build-time kernel-doc
checks cover .c files), so the warnings only show up when kernel-doc
is invoked on the file directly.
The comments have carried the /** marker since the file was introduced
in commit 4851d97d87c8 ("Staging: IIO: dds.h convenience macros"). The
attributes themselves are already documented in
drivers/staging/iio/Documentation/sysfs-bus-iio-dds, so demote the
comments to plain /* style rather than converting them into kernel-doc
for the macros. No functional change.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
drivers/staging/iio/frequency/dds.h | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/drivers/staging/iio/frequency/dds.h b/drivers/staging/iio/frequency/dds.h
index b2ca8bb971e8..d5f0139b79f0 100644
--- a/drivers/staging/iio/frequency/dds.h
+++ b/drivers/staging/iio/frequency/dds.h
@@ -7,7 +7,7 @@
#ifndef IIO_DDS_H_
#define IIO_DDS_H_
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_frequencyY
*/
@@ -15,14 +15,14 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_frequency##_num, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_frequencyY_scale
*/
#define IIO_CONST_ATTR_FREQ_SCALE(_channel, _string) \
IIO_CONST_ATTR(out_altvoltage##_channel##_frequency_scale, _string)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_frequencysymbol
*/
@@ -30,7 +30,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_frequencysymbol, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_phaseY
*/
@@ -38,14 +38,14 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_phase##_num, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_phaseY_scale
*/
#define IIO_CONST_ATTR_PHASE_SCALE(_channel, _string) \
IIO_CONST_ATTR(out_altvoltage##_channel##_phase_scale, _string)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_phasesymbol
*/
@@ -53,7 +53,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_phasesymbol, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_pincontrol_en
*/
@@ -61,7 +61,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_en, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_pincontrol_frequency_en
*/
@@ -69,7 +69,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_frequency_en,\
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_pincontrol_phase_en
*/
@@ -77,7 +77,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_pincontrol_phase_en, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_out_enable
*/
@@ -85,7 +85,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_out_enable, \
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_outY_enable
*/
@@ -94,7 +94,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_out##_output##_enable,\
_mode, _show, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_outY_wavetype
*/
@@ -102,7 +102,7 @@
IIO_DEVICE_ATTR(out_altvoltage##_channel##_out##_output##_wavetype,\
_mode, NULL, _store, _addr)
-/**
+/*
* /sys/bus/iio/devices/.../out_altvoltageX_outY_wavetype_available
*/
base-commit: 2e2f2de7532cbbc2269de8be20ec709606c6e79b
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: iio: frequency: remove incorrect kernel-doc markings in dds.h
2026-07-12 22:30 [PATCH] staging: iio: frequency: remove incorrect kernel-doc markings in dds.h Babanpreet Singh
@ 2026-07-13 0:35 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2026-07-13 0:35 UTC (permalink / raw)
To: Babanpreet Singh
Cc: David Lechner, Nuno Sá, Andy Shevchenko, Greg Kroah-Hartman,
linux-iio, linux-staging, linux-kernel
On Sun, 12 Jul 2026 22:30:04 +0000
Babanpreet Singh <bbnpreetsingh@gmail.com> wrote:
> The 13 comment blocks in dds.h noting which sysfs attribute each
> convenience macro creates are opened with the kernel-doc /** marker,
> but they are not kernel-doc: there is no identifier to document.
> Running kernel-doc on the file emits 103 warnings:
>
> $ scripts/kernel-doc -none drivers/staging/iio/frequency/dds.h
> Warning: drivers/staging/iio/frequency/dds.h:10 Cannot find
> identifier on line:
> * /sys/bus/iio/devices/.../out_altvoltageX_frequencyY
>
> The header is not scanned during normal builds (build-time kernel-doc
> checks cover .c files), so the warnings only show up when kernel-doc
> is invoked on the file directly.
>
> The comments have carried the /** marker since the file was introduced
> in commit 4851d97d87c8 ("Staging: IIO: dds.h convenience macros"). The
> attributes themselves are already documented in
> drivers/staging/iio/Documentation/sysfs-bus-iio-dds, so demote the
> comments to plain /* style rather than converting them into kernel-doc
> for the macros. No functional change.
>
> Assisted-by: Claude:claude-sonnet-5
> Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
Applied.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-13 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12 22:30 [PATCH] staging: iio: frequency: remove incorrect kernel-doc markings in dds.h Babanpreet Singh
2026-07-13 0:35 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox