Skip to contentSkip to conversation

lib/win_minmax: use /* notation for regular comments

PATCH Applied Randy Dunlap 2 participants 3 messages Jan 2, 2023 – Sep 1 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/win_minmax: use /* notation for regular comments

Don't use kernel-doc "/**" notation for non-kernel-doc comments. Prevents a kernel-doc warning:

lib/win_minmax.c:31: warning: expecting prototype for lib/minmax.c(). Prototype was for minmax_subwin_update() instead

Cc Neal Cardwell <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc David S. Miller <[email protected]>
Cc Andrew Morton <[email protected]>
---
 lib/win_minmax.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/win_minmax.c +1 -1
diff -- a/lib/win_minmax.c b/lib/win_minmax.c
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
-/**
+/*
  * lib/minmax.c: windowed min/max tracker
  *
  * Kathleen Nichols' algorithm for tracking the minimum (or maximum)
#1 lore raw
Quoted 4 lines · Randy Dunlap

Don't use kernel-doc "/**" notation for non-kernel-doc comments. Prevents a kernel-doc warning:

lib/win_minmax.c:31: warning: expecting prototype for lib/minmax.c(). Prototype was for minmax_subwin_update() instead

...

lib/win_minmax.c line 3

Quoted 3 lines
lib/win_minmax.c +1 -1
-/**
+/*
  * lib/minmax.c: windowed min/max tracker

Side note (just stumbled over it today), if you fixing like this it also makes sense to drop rather problematic filename in the file. Here is exactly a good example why (it's not the same as on the filesystem and in general easy to go south with time).

Quoted 2 lines

*
* Kathleen Nichols' algorithm for tracking the minimum (or maximum)

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 8 lines · Andy Shevchenko
Quoted 4 lines · Randy Dunlap

Don't use kernel-doc "/**" notation for non-kernel-doc comments. Prevents a kernel-doc warning:

lib/win_minmax.c:31: warning: expecting prototype for lib/minmax.c(). Prototype was for minmax_subwin_update() instead

...

Quoted 8 lines

lib/win_minmax.c line 3

Quoted 3 lines
lib/win_minmax.c +1 -1
-/**
+/*
  * lib/minmax.c: windowed min/max tracker

Side note (just stumbled over it today), if you fixing like this it also makes sense to drop rather problematic filename in the file. Here is exactly a good example why (it's not the same as on the filesystem and in general easy to go south with time).

Ack. I'll try to do that in the future.

Quoted 3 lines
Quoted 2 lines

*
* Kathleen Nichols' algorithm for tracking the minimum (or maximum)

Signature · 1 line
~Randy