Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

args: fix documentation to reflect the correct numbers

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

Link: https://lkml.kernel.org/r/20251201201018.765475-1-andriy.shevchenko@linux.intel.com
Fixes: d51e783c17ba ("lsm: count the LSMs enabled at compile time")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Andy Shevchenko and committed by
Andrew Morton
e6b4d264 039bef30

+2 -2
+2 -2
include/linux/args.h
··· 6 6 /* 7 7 * How do these macros work? 8 8 * 9 - * In __COUNT_ARGS() _0 to _12 are just placeholders from the start 9 + * In __COUNT_ARGS() _0 to _15 are just placeholders from the start 10 10 * in order to make sure _n is positioned over the correct number 11 - * from 12 to 0 (depending on X, which is a variadic argument list). 11 + * from 15 to 0 (depending on X, which is a variadic argument list). 12 12 * They serve no purpose other than occupying a position. Since each 13 13 * macro parameter must have a distinct identifier, those identifiers 14 14 * are as good as any.