Commit 6e5f6856427abe5418f535cb46c454ae8ea7f8e7
Committed by
Michal Marek
1 parent
1121584f5d
Exists in
master
and in
7 other branches
checksyscalls: Fix stand-alone usage
The usage help in the comments - refers to the wrong script name, - doesn't mention that $srctree must be set. Hence correct the script name, and derive the source tree path from the script path, so we no longer need to rely on $srctree being set by the caller. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
scripts/checksyscalls.sh
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | # and listed below so they are ignored. |
7 | 7 | # |
8 | 8 | # Usage: |
9 | -# syscallchk gcc gcc-options | |
9 | +# checksyscalls.sh gcc gcc-options | |
10 | 10 | # |
11 | 11 | |
12 | 12 | ignore_list() { |
... | ... | @@ -204,6 +204,6 @@ |
204 | 204 | \#endif/p' $1 |
205 | 205 | } |
206 | 206 | |
207 | -(ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \ | |
207 | +(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ | |
208 | 208 | $* -E -x c - > /dev/null |