aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorJason Baron <[email protected]>2009-08-26 12:09:10 -0400
committerFrederic Weisbecker <[email protected]>2009-08-26 21:29:58 +0200
commita5a2f8e2acb991327952c45a13f5441fc09dffd6 (patch)
tree6707f1b387132a19a1f1a8ff39c6df6405400183 /drivers/mtd/lpddr/lpddr_cmds.c
parentdd86dda24cc1dc70031a7d9250dc3c0c430a50e2 (diff)
tracing: Define NR_syscalls for x86_64
Express the available number of syscalls in a standard way by defining NR_syscalls. The common way to define it is to place its definition in asm/unistd.h However, the number of syscalls is defined using __NR_syscall_max in x86-64 after building a dynamic header file "asm-offsets.h" The source file that generates this header, asm-offsets-64.c includes unistd.h, then if we want to express NR_syscalls from __NR_syscall_max in unistd.h only after generating the dynamic header file, we need a watchguard. If unistd.h is included from asm-offsets-64.c, then we are generating asm-offset.h which defines __NR_syscall_max. At this time, we don't want to (we can't) define NR_syscalls, then we do nothing. Otherwise we define NR_syscalls because we know asm-offsets.h has been generated. Signed-off-by: Jason Baron <[email protected]> Acked-by: Steven Rostedt <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Lai Jiangshan <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Jiaying Zhang <[email protected]> Cc: Martin Bligh <[email protected]> Cc: Li Zefan <[email protected]> Cc: Josh Stone <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: H. Peter Anwin <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Heiko Carstens <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions