Skip to contentSkip to conversation

args: Fix documentation to reflect the correct numbers

PATCH Applied Andy Shevchenko 2 participants 2 messages Dec 1, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 args: Fix documentation to reflect the correct numbers

The macro uses up to 15 arguments. Reflect this in the top level comment.

Fixes d51e783c17ba ("lsm: count the LSMs enabled at compile time")
---
 include/linux/args.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/args.h +2 -2
index 2e8e65d975c7..0562dc51435e 100644
@@ -6,9 +6,9 @@
 /*
  * How do these macros work?
  *
- * In __COUNT_ARGS() _0 to _12 are just placeholders from the start
+ * In __COUNT_ARGS() _0 to _15 are just placeholders from the start
  * in order to make sure _n is positioned over the correct number
- * from 12 to 0 (depending on X, which is a variadic argument list).
+ * from 15 to 0 (depending on X, which is a variadic argument list).
  * They serve no purpose other than occupying a position. Since each
  * macro parameter must have a distinct identifier, those identifiers
  * are as good as any.
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Andy Shevchenko

The macro uses up to 15 arguments. Reflect this in the top level comment.

You made me look!

Thanks.

Quoted 22 lines
Fixes d51e783c17ba ("lsm: count the LSMs enabled at compile time")
---
 include/linux/args.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/args.h +2 -2
index 2e8e65d975c7..0562dc51435e 100644
@@ -6,9 +6,9 @@
 /*
  * How do these macros work?
  *
- * In __COUNT_ARGS() _0 to _12 are just placeholders from the start
+ * In __COUNT_ARGS() _0 to _15 are just placeholders from the start
  * in order to make sure _n is positioned over the correct number
- * from 12 to 0 (depending on X, which is a variadic argument list).
+ * from 15 to 0 (depending on X, which is a variadic argument list).
  * They serve no purpose other than occupying a position. Since each
  * macro parameter must have a distinct identifier, those identifiers
  * are as good as any.
Signature · 1 line
~Randy