]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: fix fpu.h usage in userspace
authorMike Frysinger <vapier@gentoo.org>
Sun, 19 Aug 2012 02:41:02 +0000 (14:41 +1200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Aug 2012 15:41:19 +0000 (08:41 -0700)
commitf61ce80d7a3451d98a82aa098f827b9f81694a0d
tree86a69db86f9753d031ed2654f9769a910840d490
parentfb1d0352d75ba40a82f2f1170e4342a28756b0c1
alpha: fix fpu.h usage in userspace

After commit 755ad1a1ccb2 ("Disintegrate asm/system.h for Alpha"), the
fpu.h header which we install for userland started depending on
special_insns.h which is not installed.

However, fpu.h only uses that for __KERNEL__ code, so protect the
inclusion the same way to avoid build breakage in glibc:

  /usr/include/asm/fpu.h:4:31: fatal error: asm/special_insns.h: No such file or directory

Cc: stable@vger.kernel.org
Reported-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/fpu.h