Commit 0be42186 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

alpha: fix fpu.h usage in userspace

After commit ec221208 ("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: default avatarMatt Turner <mattst88@gentoo.org>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarMichael Cree <mcree@orcon.net.nz>
Acked-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0bcc426b
#ifndef __ASM_ALPHA_FPU_H #ifndef __ASM_ALPHA_FPU_H
#define __ASM_ALPHA_FPU_H #define __ASM_ALPHA_FPU_H
#ifdef __KERNEL__
#include <asm/special_insns.h> #include <asm/special_insns.h>
#endif
/* /*
* Alpha floating-point control register defines: * Alpha floating-point control register defines:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment