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 <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-02-28 16:39:44 +01:00
parent 3b60542041
commit aea4b876c8
4 changed files with 8 additions and 3 deletions

View File

@ -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

6
linux/dummy_check.sh Executable file
View File

@ -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

View File

@ -1,4 +1,4 @@
#include "dummy.h"
#include "../dummy.h"
{ 0, 0, printargs, "svr4_syscall" }, /* 000 */
{ 0, 0, printargs, "svr4_exit" }, /* 001 */

View File

@ -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();