diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-04-09 05:03:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:44:55 -0400 |
commit | 765c68bd54c76d4126796e49af2a1428a258429f (patch) | |
tree | 3891c95c96776125a6a3b37aebfbc6fb1a14765e | |
parent | 60a3cdd0639473c79c253bc08c8ef8f882cca107 (diff) |
generic: make optimized inlining arch-opt-in
Stephen Rothwell reported that linux-next did not build on powerpc64.
make optimized inlining dependent on architecture opt-in.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/Kconfig | 3 | ||||
-rw-r--r-- | include/linux/compiler-gcc.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 4d350b5cbc71..3b6ff3b4ad20 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -142,6 +142,9 @@ config AUDIT_ARCH | |||
142 | config ARCH_SUPPORTS_AOUT | 142 | config ARCH_SUPPORTS_AOUT |
143 | def_bool y | 143 | def_bool y |
144 | 144 | ||
145 | config ARCH_SUPPORTS_OPTIMIZED_INLINING | ||
146 | def_bool y | ||
147 | |||
145 | # Use the generic interrupt handling code in kernel/irq/: | 148 | # Use the generic interrupt handling code in kernel/irq/: |
146 | config GENERIC_HARDIRQS | 149 | config GENERIC_HARDIRQS |
147 | bool | 150 | bool |
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 340bc5d92772..b2fd7547b58d 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
@@ -31,7 +31,8 @@ | |||
31 | /* | 31 | /* |
32 | * Force always-inline if the user requests it so via the .config: | 32 | * Force always-inline if the user requests it so via the .config: |
33 | */ | 33 | */ |
34 | #if !defined(CONFIG_OPTIMIZE_INLINING) && (__GNUC__ >= 4) | 34 | #if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ |
35 | !defined(CONFIG_OPTIMIZE_INLINING) && (__GNUC__ >= 4) | ||
35 | # define inline inline __attribute__((always_inline)) | 36 | # define inline inline __attribute__((always_inline)) |
36 | # define __inline__ __inline__ __attribute__((always_inline)) | 37 | # define __inline__ __inline__ __attribute__((always_inline)) |
37 | # define __inline __inline __attribute__((always_inline)) | 38 | # define __inline __inline __attribute__((always_inline)) |