]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc: properly conditionalize use of TIF_32BIT
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Apr 2014 06:22:07 +0000 (16:22 +1000)
committerEric Paris <eparis@redhat.com>
Tue, 22 Apr 2014 16:40:36 +0000 (12:40 -0400)
commit66dde9dbae61e9e83f37f01868014a2b9732053c
tree5e8e5ee68f6daa657f9799a50c262d3f3e721dbd
parente24775b84ab5ad8dd1adaf5a68e274799da22425
sparc: properly conditionalize use of TIF_32BIT

After merging the audit tree, today's linux-next build (sparc defconfig)
failed like this:

In file included from include/linux/audit.h:29:0,
                 from mm/mmap.c:33:
arch/sparc/include/asm/syscall.h: In function 'syscall_get_arch':
arch/sparc/include/asm/syscall.h:131:9: error: 'TIF_32BIT' undeclared (first use in this function)
arch/sparc/include/asm/syscall.h:131:9: note: each undeclared identifier is reported only once for each function it appears in

And many more ...

Caused by commit 374c0c054122 ("ARCH: AUDIT: implement syscall_get_arch
for all arches").

This patch wraps the usage of TIF_32BIT in:
   if defined(__sparc__) && defined(__arch64__)
Which solves the build problem.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
arch/sparc/include/asm/syscall.h