All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] args: Fix documentation to reflect the correct numbers
@ 2025-12-01 20:10 Andy Shevchenko
  2025-12-01 20:16 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-12-01 20:10 UTC (permalink / raw)
  To: Andy Shevchenko, linux-kernel; +Cc: Andrew Morton, Randy Dunlap

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

Fixes: d51e783c17ba ("lsm: count the LSMs enabled at compile time")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/args.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/args.h b/include/linux/args.h
index 2e8e65d975c7..0562dc51435e 100644
--- a/include/linux/args.h
+++ b/include/linux/args.h
@@ -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.
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1 1/1] args: Fix documentation to reflect the correct numbers
  2025-12-01 20:10 [PATCH v1 1/1] args: Fix documentation to reflect the correct numbers Andy Shevchenko
@ 2025-12-01 20:16 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2025-12-01 20:16 UTC (permalink / raw)
  To: Andy Shevchenko, linux-kernel; +Cc: Andrew Morton



On 12/1/25 12:10 PM, Andy Shevchenko wrote:
> The macro uses up to 15 arguments. Reflect this in the top
> level comment.
> 

You made me look!

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> Fixes: d51e783c17ba ("lsm: count the LSMs enabled at compile time")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  include/linux/args.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/args.h b/include/linux/args.h
> index 2e8e65d975c7..0562dc51435e 100644
> --- a/include/linux/args.h
> +++ b/include/linux/args.h
> @@ -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.

-- 
~Randy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-01 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-01 20:10 [PATCH v1 1/1] args: Fix documentation to reflect the correct numbers Andy Shevchenko
2025-12-01 20:16 ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.