From: Denys Vlasenko Date: Tue, 28 Feb 2012 15:39:44 +0000 (+0100) Subject: Remove stray sys_swapon() declaration X-Git-Tag: v4.7~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aea4b876c842081829b5174f5d07331e2bccf6a6;p=strace Remove stray sys_swapon() declaration * linux/syscall.h: Remove stray sys_swapon() declaration. * linux/mips/syscallent.h: Include dummy.h with correct relative path. * linux/dummy.h: Tweak one place where spaces are used instead of tabs. * linux/dummy_check.sh: New script. It helps in finding stray syscall handler declarations. Signed-off-by: Denys Vlasenko --- diff --git a/linux/dummy.h b/linux/dummy.h index 26afbbc3..1605bb40 100644 --- a/linux/dummy.h +++ b/linux/dummy.h @@ -89,7 +89,7 @@ #define sys_pivotroot sys_link #define sys_rename sys_link #define sys_rmdir sys_chdir -#define sys_sched_get_priority_max sys_sched_get_priority_min +#define sys_sched_get_priority_max sys_sched_get_priority_min #define sys_swapoff sys_chdir #define sys_swapon sys_chdir #define sys_symlink sys_link diff --git a/linux/dummy_check.sh b/linux/dummy_check.sh new file mode 100755 index 00000000..bcce34c8 --- /dev/null +++ b/linux/dummy_check.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +grep '^#define' dummy.h | cut -f2 | \ +while read func; do + grep -q -F -- "${func}(" syscall.h && echo "Defined as macro and as func: $func" +done diff --git a/linux/mips/syscallent.h b/linux/mips/syscallent.h index 27ca64a4..5f404d5a 100644 --- a/linux/mips/syscallent.h +++ b/linux/mips/syscallent.h @@ -1,4 +1,4 @@ -#include "dummy.h" +#include "../dummy.h" { 0, 0, printargs, "svr4_syscall" }, /* 000 */ { 0, 0, printargs, "svr4_exit" }, /* 001 */ diff --git a/linux/syscall.h b/linux/syscall.h index 4eb7368b..45f00a3b 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -259,7 +259,6 @@ int sys_stat64(); int sys_statfs(); int sys_statfs64(); int sys_stime(); -int sys_swapon(); int sys_symlinkat(); int sys_sysctl(); int sys_sysinfo();