Commit 5d26198
checkpatch: don't complain about LEADING_SPACE in CPP continuations
If a C preprocessor macro is continued onto another line using
a backslash line continuation, checkpatch.pl will complain about leading
spaces used to indent the multiline conditional.
This leads to warnings similar to the following
WARNING: please, no spaces at the start of a line
torvalds#107: FILE: arch/m68k/include/asm/mcfgpio.h:107:
+ defined(CONFIG_M53xx) || defined(CONFIG_M54xx) || \$
WARNING: please, no spaces at the start of a line
torvalds#108: FILE: arch/m68k/include/asm/mcfgpio.h:108:
+ defined(CONFIG_M5441x)$
To fix these warnings, modify the test to also exclude lines which end
in a backslach continuation, as these lines should only occur within
a multiline C Preprocessor check.
Signed-off-by: Jacob Keller <[email protected]>1 parent 3bd6e94 commit 5d26198
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3355 | 3355 | | |
3356 | 3356 | | |
3357 | 3357 | | |
3358 | | - | |
| 3358 | + | |
| 3359 | + | |
3359 | 3360 | | |
3360 | 3361 | | |
3361 | 3362 | | |
| |||
0 commit comments