diff options
author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2005-09-22 21:43:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-22 22:17:34 -0700 |
commit | 7243cc05bafdda4c4de77cba00cf87666bd237f7 (patch) | |
tree | a893a19e774de07face851ace998830ea1487612 /include/asm-alpha | |
parent | 4b3c86a7452df8608c32a1c1f19c0cc0723c145f (diff) | |
download | kernel_samsung_smdk4412-7243cc05bafdda4c4de77cba00cf87666bd237f7.zip kernel_samsung_smdk4412-7243cc05bafdda4c4de77cba00cf87666bd237f7.tar.gz kernel_samsung_smdk4412-7243cc05bafdda4c4de77cba00cf87666bd237f7.tar.bz2 |
[PATCH] slab: alpha inlining fix
It is essential that index_of() be inlined. But alpha undoes the gcc
inlining hackery and index_of() ends up out-of-line. So fiddle with things
to make that function inline again.
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-alpha')
-rw-r--r-- | include/asm-alpha/compiler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-alpha/compiler.h b/include/asm-alpha/compiler.h index 399c33b..0a4a8b4 100644 --- a/include/asm-alpha/compiler.h +++ b/include/asm-alpha/compiler.h @@ -98,6 +98,9 @@ #undef inline #undef __inline__ #undef __inline - +#if __GNUC__ == 3 && __GNUC_MINOR__ >= 1 || __GNUC__ > 3 +#undef __always_inline +#define __always_inline inline __attribute__((always_inline)) +#endif #endif /* __ALPHA_COMPILER_H */ |