Commit bd8f89ff47f11941a109220dbd51d81fd7ed2058

Authored by Thomas Volpini
Committed by Sam Ravnborg
1 parent 13797b77d4

scripts/checksyscalls.sh: fix for non-gnu sed

Make the checksyscalls script work even on systems where sed is non-gnu.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

scripts/checksyscalls.sh
... ... @@ -113,10 +113,10 @@
113 113 }
114 114  
115 115 syscall_list() {
116   -sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
  116 +sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
117 117 \#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
118 118 \#warning syscall \1 not implemented\
119   -\#endif/p }' $1
  119 +\#endif/p' $1
120 120 }
121 121  
122 122 (ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \