Skip to content

Commit

Permalink
alpha: fix fpu.h usage in userspace
Browse files Browse the repository at this point in the history
After commit ec22120 ("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: [email protected]
Reported-by: Matt Turner <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Michael Cree <[email protected]>
Acked-by: Matt Turner <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
vapier authored and torvalds committed Aug 19, 2012
1 parent 0bcc426 commit 0be4218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/alpha/include/asm/fpu.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef __ASM_ALPHA_FPU_H
#define __ASM_ALPHA_FPU_H

#ifdef __KERNEL__
#include <asm/special_insns.h>
#endif

/*
* Alpha floating-point control register defines:
Expand Down

0 comments on commit 0be4218

Please sign in to comment.