mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 11:21:51 +00:00
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>
This commit is contained in:
parent
60a3cdd063
commit
765c68bd54
2 changed files with 5 additions and 1 deletions
|
@ -142,6 +142,9 @@ config AUDIT_ARCH
|
||||||
config ARCH_SUPPORTS_AOUT
|
config ARCH_SUPPORTS_AOUT
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
|
config ARCH_SUPPORTS_OPTIMIZED_INLINING
|
||||||
|
def_bool y
|
||||||
|
|
||||||
# Use the generic interrupt handling code in kernel/irq/:
|
# Use the generic interrupt handling code in kernel/irq/:
|
||||||
config GENERIC_HARDIRQS
|
config GENERIC_HARDIRQS
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
/*
|
/*
|
||||||
* Force always-inline if the user requests it so via the .config:
|
* 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))
|
# define __inline__ __inline__ __attribute__((always_inline))
|
||||||
# define __inline __inline __attribute__((always_inline))
|
# define __inline __inline __attribute__((always_inline))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue