Skip to contentSkip to conversation

platform/x86: wmi: linux/wmi.h: fix Excess kernel-doc description warning

PATCH Superseded Randy Dunlap 2 participants 3 messages Dec 23, 2023 x86 platform drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: wmi: linux/wmi.h: fix Excess kernel-doc description warning

Remove the "private:" comment to prevent the kernel-doc warning:

include/linux/wmi.h:27: warning: Excess struct member 'setable' description in 'wmi_device'

Either a struct member is documented (via kernel-doc) or it's private, but not both.

Cc Armin Wolf <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Ilpo Järvinen <[email protected]>
---
 include/linux/wmi.h |    2 --
 1 file changed, 2 deletions(-)
include/linux/wmi.h +0 -2
diff -- a/include/linux/wmi.h b/include/linux/wmi.h
@@ -21,8 +21,6 @@
  */
 struct wmi_device {
 	struct device dev;
-
-	/* private: used by the WMI driver core */
 	bool setable;
 };
 
Reviewed-by on v1 1/1
#1 lore raw

Am 23.12.23 um 06:06 schrieb Randy Dunlap:

Quoted 6 lines

Remove the "private:" comment to prevent the kernel-doc warning:

include/linux/wmi.h:27: warning: Excess struct member 'setable' description in 'wmi_device'

Either a struct member is documented (via kernel-doc) or it's private, but not both.

Hi,

i am not encountering this kernel doc warning, but your argument is still valid. I also seem to have missed the fact that WMI drivers may want to know whether their WMI data block is setable during runtime when i added those kernel-doc comments.

Please add a Fixes: b4cc979588ee ("platform/x86: wmi: Add kernel doc comments") tag so that this patch can reach the stable kernels. With that addressed, you may also add:

Thanks,
Armin Wolf

Quoted 21 lines
Cc Armin Wolf <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Ilpo Järvinen <[email protected]>
---
  include/linux/wmi.h |    2 --
  1 file changed, 2 deletions(-)

diff -- a/include/linux/wmi.h b/include/linux/wmi.h

include/linux/wmi.h +0 -2
@@ -21,8 +21,6 @@
   */
  struct wmi_device {
  	struct device dev;
-
-	/* private: used by the WMI driver core */
  	bool setable;
  };
 
#2 lore raw

Hi Armin,

Quoted 6 lines · Armin Wolf

Am 23.12.23 um 06:06 schrieb Randy Dunlap:

Quoted 4 lines

Remove the "private:" comment to prevent the kernel-doc warning:

include/linux/wmi.h:27: warning: Excess struct member 'setable' description in 'wmi_device'

Quoted 8 lines
Quoted 2 lines

Either a struct member is documented (via kernel-doc) or it's private, but not both.

Hi,

i am not encountering this kernel doc warning, but your argument is still valid. I also seem to have missed the fact that WMI drivers may want to know whether their WMI data block is setable during runtime when i added those kernel-doc comments.

The warning comes from 2 new patches in linux-next.

Quoted 4 lines

Please add a Fixes: b4cc979588ee ("platform/x86: wmi: Add kernel doc comments") tag so that this patch can reach the stable kernels. With that addressed, you may also add:

Thanks. patch v2 is on the way.

Quoted 24 lines

Thanks,
Armin Wolf

Quoted 21 lines
Cc Armin Wolf <[email protected]>
Cc Hans de Goede <[email protected]>
Cc Ilpo Järvinen <[email protected]>

---
  include/linux/wmi.h |    2 --

  1 file changed, 2 deletions(-)

diff -- a/include/linux/wmi.h b/include/linux/wmi.h

include/linux/wmi.h +0 -2
@@ -21,8 +21,6 @@
    */
   struct wmi_device {
       struct device dev;
-
-    /* private: used by the WMI driver core */
       bool setable;
   };
 
Signature · 3 lines
#Randy
https://people.kernel.org/tglx/notes-about-netiquette
https://subspace.kernel.org/etiquette.html