xtensa: allow multi-inclusion for uapi/unistd.h
authorChris Zankel <chris@zankel.net>
Wed, 24 Oct 2012 03:17:05 +0000 (20:17 -0700)
committerChris Zankel <chris@zankel.net>
Thu, 25 Oct 2012 21:53:36 +0000 (14:53 -0700)
commit2f72d4f6a29cf84c40fc05c76020b347b4774393
tree3877c9fdac29b33d2beaab2c58c36a0d6f7649ca
parent6f0c0580b70c89094b3422ba81118c7b959c7556
xtensa: allow multi-inclusion for uapi/unistd.h

Xtensa implements a method that allows to generate a arbitrary output
for each system call by defining the __SYSCALL(number, function, num_args).
This usually requires to include uapi/unistd.h twice. Instead of removing
the guard agains multiple inclusion entirely, allow to include unistd.h again
only if __SYSCALL is defined. Note that __SYSCALL gets always undefined at
the end of the file.

Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/unistd.h
arch/xtensa/include/uapi/asm/unistd.h
arch/xtensa/kernel/syscall.c