提交 bd8f89ff 编写于 作者: T Thomas Volpini 提交者: Sam Ravnborg

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

Make the checksyscalls script work even on systems where sed is non-gnu.
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 13797b77
...@@ -113,10 +113,10 @@ EOF ...@@ -113,10 +113,10 @@ EOF
} }
syscall_list() { syscall_list() {
sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\ sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\ \#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
\#warning syscall \1 not implemented\ \#warning syscall \1 not implemented\
\#endif/p }' $1 \#endif/p' $1
} }
(ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \ (ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册