aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorSam Ravnborg2007-03-27 15:50:29 -0500
committerSam Ravnborg2007-05-02 13:58:09 -0500
commitc53aeca059c4d2108335810fba6ba89ab6a944dd (patch)
tree18815815389d29385eda852851eac1e1fe7d4e0d /Kbuild
parentded2e1640ffaee26c054a42e5210c1086fb1d8eb (diff)
downloadkernel-omap-c53aeca059c4d2108335810fba6ba89ab6a944dd.tar.gz
kernel-omap-c53aeca059c4d2108335810fba6ba89ab6a944dd.tar.xz
kernel-omap-c53aeca059c4d2108335810fba6ba89ab6a944dd.zip
kbuild: complain about missing system calls
Most system calls seems to get added to i386 first. This patch automatically generates a warning for any new system call which is implemented on i386 but not the architecture currently being compiled. On PowerPC at the moment, for example, it results in these warnings: init/missing_syscalls.h:935:3: warning: #warning syscall sync_file_range not implemented init/missing_syscalls.h:947:3: warning: #warning syscall getcpu not implemented init/missing_syscalls.h:950:3: warning: #warning syscall epoll_pwait not implemented The file scripts/checksyscalls.sh list a number of legacy system calls that are ignored because they only makes sense on i386 systems. Other contributors to this patch are Russell King <rmk+lkml@arm.linux.org.uk> and Stéphane Jourdois <kwisatz@rubis.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/Kbuild b/Kbuild
index 0451f69353ba..163f8cb020a4 100644
--- a/Kbuild
+++ b/Kbuild
@@ -2,6 +2,7 @@
2# Kbuild for top-level directory of the kernel 2# Kbuild for top-level directory of the kernel
3# This file takes care of the following: 3# This file takes care of the following:
4# 1) Generate asm-offsets.h 4# 1) Generate asm-offsets.h
5# 2) Check for missing system calls
5 6
6##### 7#####
7# 1) Generate asm-offsets.h 8# 1) Generate asm-offsets.h
@@ -46,3 +47,13 @@ $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild
46 $(Q)mkdir -p $(dir $@) 47 $(Q)mkdir -p $(dir $@)
47 $(call cmd,offsets) 48 $(call cmd,offsets)
48 49
50#####
51# 2) Check for missing system calls
52#
53
54quiet_cmd_syscalls = CALL $<
55 cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags)
56
57PHONY += missing-syscalls
58missing-syscalls: scripts/checksyscalls.sh FORCE
59 $(call cmd,syscalls)