]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
generic: make optimized inlining arch-opt-in
authorIngo Molnar <mingo@elte.hu>
Wed, 9 Apr 2008 09:03:37 +0000 (11:03 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:44:55 +0000 (17:44 +0200)
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>
arch/x86/Kconfig
include/linux/compiler-gcc.h

index 4d350b5cbc71fdaf7f8c8ed0d6a84d4aa96b9de4..3b6ff3b4ad2055c7a501ba1853a2d3c79b34d974 100644 (file)
@@ -142,6 +142,9 @@ config AUDIT_ARCH
 config ARCH_SUPPORTS_AOUT
        def_bool y
 
+config ARCH_SUPPORTS_OPTIMIZED_INLINING
+       def_bool y
+
 # Use the generic interrupt handling code in kernel/irq/:
 config GENERIC_HARDIRQS
        bool
index 340bc5d9277210a911bbd1d88599332244b27761..b2fd7547b58deaa5e90b0fa5b384c0581da19d58 100644 (file)
@@ -31,7 +31,8 @@
 /*
  * Force always-inline if the user requests it so via the .config:
  */
-#if !defined(CONFIG_OPTIMIZE_INLINING) && (__GNUC__ >= 4)
+#if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \
+    !defined(CONFIG_OPTIMIZE_INLINING) && (__GNUC__ >= 4)
 # define inline                inline          __attribute__((always_inline))
 # define __inline__    __inline__      __attribute__((always_inline))
 # define __inline      __inline        __attribute__((always_inline))