]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
x86: Move <asm/asm-offsets.h> from trace_syscalls.c to asm/syscall.h
authorH. Peter Anvin <hpa@zytor.com>
Sat, 7 Jan 2012 22:10:18 +0000 (14:10 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 7 Jan 2012 22:10:18 +0000 (14:10 -0800)
This reverts commit d5e553d6e0a4bdea43adae7373e3fa144b9a1aaa, which
caused large numbers of build warnings on PowerPC.

This moves the #include <asm/asm-offsets.h> to <asm/syscall.h>, which
makes some kind of sense since NR_syscalls is syscalls related.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/20111214181545.6e13bc954cb7ddce9086e861@canb.auug.org.au
arch/x86/include/asm/syscall.h
kernel/trace/trace_syscalls.c

index c4a348f7bd43de3932f88d0f8ddb5b66a7526863..d962e5652a7352498bd9654315f7819fb7d9d86b 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <linux/sched.h>
 #include <linux/err.h>
+#include <asm/asm-offsets.h>   /* For NR_syscalls */
 
 extern const unsigned long sys_call_table[];
 
index 5f35f6f15d99a9bff3530fee5dc27eeedf9576f2..cb654542c1a1621fc325cba70699f8b2d1be9658 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/ftrace.h>
 #include <linux/perf_event.h>
 #include <asm/syscall.h>
-#include <asm/asm-offsets.h>
 
 #include "trace_output.h"
 #include "trace.h"