History

args: fix documentation to reflect the correct numbers

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

Andy Shevchenko committed 11 months ago

Commit e6b4d261 parent 039bef31 file · +2 −2Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/args.h+2−2
@@ -6,9 +6,9 @@ · 5 unmodified lines
6/*6/*
7 * How do these macros work?7 * How do these macros work?
8 *8 *
9 * In __COUNT_ARGS() _0 to _12 are just placeholders from the start9 * In __COUNT_ARGS() _0 to _15 are just placeholders from the start
10 * in order to make sure _n is positioned over the correct number10 * 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 * They serve no purpose other than occupying a position. Since each12 * They serve no purpose other than occupying a position. Since each
13 * macro parameter must have a distinct identifier, those identifiers13 * macro parameter must have a distinct identifier, those identifiers
14 * are as good as any.14 * are as good as any.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t