Commit 9192d41
checkpatch: add --strict test for precedence challenged macro arguments
Add a test for macro arguents that have a non-comma leading or trailing
operator where the argument isn't parenthesized to avoid possible precedence
issues.
Link: http://lkml.kernel.org/r/47715508972f8d786f435e583ff881dbeee3a114.1473745855.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent f59b64b commit 9192d41
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4836 | 4836 | | |
4837 | 4837 | | |
4838 | 4838 | | |
4839 | | - | |
| 4839 | + | |
4840 | 4840 | | |
4841 | 4841 | | |
4842 | 4842 | | |
| |||
4845 | 4845 | | |
4846 | 4846 | | |
4847 | 4847 | | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
4848 | 4855 | | |
4849 | 4856 | | |
4850 | 4857 | | |
| |||
0 commit comments