* 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>
#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
--- /dev/null
+#!/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
-#include "dummy.h"
+#include "../dummy.h"
{ 0, 0, printargs, "svr4_syscall" }, /* 000 */
{ 0, 0, printargs, "svr4_exit" }, /* 001 */
int sys_statfs();
int sys_statfs64();
int sys_stime();
-int sys_swapon();
int sys_symlinkat();
int sys_sysctl();
int sys_sysinfo();