Skip to contentSkip to conversation

hwmon: (yogafan) fix non-kernel-doc comment

PATCH Applied hanzhijian 3 participants 8 messages Aug 21 – Aug 24

Subsystems (2)
lore
Share & tools
lore

hanzhijian

author
#0 lore raw

PATCH 1/1 hwmon: (yogafan) fix non-kernel-doc comment

The file description comment starts with "/**" which is reserved for kernel-doc comments, triggering a kernel-doc checker warning. Change it to a plain "/*" comment since it does not document any function or struct.

---
 drivers/hwmon/yogafan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/yogafan.c +1 -1
index 48fa5148d..278cb089b 100644
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
  * yoga_fan.c - Lenovo Yoga/Legion Fan Hardware Monitoring Driver
  *
  * Provides fan speed monitoring for Lenovo Yoga, Legion, and IdeaPad
Signature · 1 line
2.43.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines

The file description comment starts with "/**" which is reserved for kernel-doc comments, triggering a kernel-doc checker warning. Change it to a plain "/*" comment since it does not document any function or struct.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
author
#2 lore raw
In reply to hanzhijian

Please drop this patch as well. It is a trivial cleanup that only silences the kernel-doc checker and does not fix a real problem.

hanzhijian

maintainer Applied
#3 lore raw
In reply to hanzhijian
Quoted 6 lines · hanzhijian

The file description comment starts with "/**" which is reserved for kernel-doc comments, triggering a kernel-doc checker warning. Change it to a plain "/*" comment since it does not document any function or struct.

Applied.

Thanks,
Guenter

Quoted 15 lines
---
 drivers/hwmon/yogafan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/yogafan.c +1 -1
index 48fa5148d..278cb089b 100644
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
  * yoga_fan.c - Lenovo Yoga/Legion Fan Hardware Monitoring Driver
  *
  * Provides fan speed monitoring for Lenovo Yoga, Legion, and IdeaPad
author
#4 lore raw

PATCH v2 1/1 hwmon: (yogafan) fix non-kernel-doc comment

In reply to hanzhijian

The file description comment starts with "/**", which is reserved for kernel-doc comments. scripts/kernel-doc then warns when building the documentation:

Warning: drivers/hwmon/yogafan.c:2 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst

Change it to a plain "/*" comment since it does not document any function or struct.

---
 drivers/hwmon/yogafan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/yogafan.c +1 -1
index 48fa5148d..278cb089b 100644
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
  * yoga_fan.c - Lenovo Yoga/Legion Fan Hardware Monitoring Driver
  *
  * Provides fan speed monitoring for Lenovo Yoga, Legion, and IdeaPad
Signature · 1 line
2.43.0
#5 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 4 lines

The file description comment starts with "/**", which is reserved for kernel-doc comments. scripts/kernel-doc then warns when building the documentation:

Quoted 8 lines

Warning: drivers/hwmon/yogafan.c:2 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst

Change it to a plain "/*" comment since it does not document any function or struct.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer
#6 lore raw
In reply to hanzhijian
Quoted 4 lines · hanzhijian

The file description comment starts with "/**", which is reserved for kernel-doc comments. scripts/kernel-doc then warns when building the documentation:

Quoted 8 lines

Warning: drivers/hwmon/yogafan.c:2 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst

Change it to a plain "/*" comment since it does not document any function or struct.

No change log, no change other than the commit message, that change does not add any value, and I already applied this patch and sent out a note that I did.

Are you playing with me ? I am inclined to drop this patch.

Guenter

Quoted 15 lines
---
  drivers/hwmon/yogafan.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/yogafan.c +1 -1
index 48fa5148d..278cb089b 100644
@@ -1,5 +1,5 @@
  // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
   * yoga_fan.c - Lenovo Yoga/Legion Fan Hardware Monitoring Driver
   *
   * Provides fan speed monitoring for Lenovo Yoga, Legion, and IdeaPad
author
#7 lore raw

My apologies, Guenter. You are right, and I'm sorry for the noise.

I sent the "please drop" note by mistake, then over-corrected by resending it as v2 with no code change. That was the wrong way to handle it.

Please drop the patch entirely. Sorry for wasting your time.

hanzhijian