aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorSumera Priyadarsini <[email protected]>2020-11-24 20:32:12 +0000
committerJulia Lawall <[email protected]>2020-12-24 11:59:43 +0000
commitd8f6e5c6c83737cfdad46077e614885a3db9e809 (patch)
treef067df0e5205251202fc7fae956ac92c971c4f47 /net/switchdev/switchdev.c
parentcoccinelle: update expiring email addresses (diff)
downloadkernel-d8f6e5c6c83737cfdad46077e614885a3db9e809.tar.gz
kernel-d8f6e5c6c83737cfdad46077e614885a3db9e809.zip
scripts: coccicheck: Correct usage of make coccicheck
The command "make coccicheck C=1 CHECK=scripts/coccicheck" results in the error: ./scripts/coccicheck: line 65: -1: shift count out of range This happens because every time the C variable is specified, the shell arguments need to be "shifted" in order to take only the last argument, which is the C file to test. These shell arguments mostly comprise flags that have been set in the Makefile. However, when coccicheck is specified in the make command as a rule, the number of shell arguments is zero, thus passing the invalid value -1 to the shift command, resulting in an error. Modify coccicheck to print correct usage of make coccicheck so as to avoid the error. Signed-off-by: Sumera Priyadarsini <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions