From: Ingo Molnar This patch is the first in a series that tries to optimize the kernel in terms of size (and thus cache behavior, both cpu and pagecache). This first patch changes __always_inline to be a forced inline instead of the "regular" inline it was on everything except alpha. This forced inline matches the intention of the define better as a matter of documentation. There is no change in behavior by this patch, since "inline" currently is mapped to a forced inline anyway. Signed-off-by: Ingo Molnar Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton --- include/linux/compiler-gcc3.h | 1 + include/linux/compiler-gcc4.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff -puN include/linux/compiler-gcc3.h~make-__always_inline-actually-force-always-inlining include/linux/compiler-gcc3.h --- devel/include/linux/compiler-gcc3.h~make-__always_inline-actually-force-always-inlining 2006-01-06 22:36:45.000000000 -0800 +++ devel-akpm/include/linux/compiler-gcc3.h 2006-01-06 22:36:45.000000000 -0800 @@ -13,3 +13,4 @@ #define __must_check __attribute__((warn_unused_result)) #endif +#define __always_inline inline __attribute__((always_inline)) diff -puN include/linux/compiler-gcc4.h~make-__always_inline-actually-force-always-inlining include/linux/compiler-gcc4.h --- devel/include/linux/compiler-gcc4.h~make-__always_inline-actually-force-always-inlining 2006-01-06 22:36:45.000000000 -0800 +++ devel-akpm/include/linux/compiler-gcc4.h 2006-01-06 22:36:45.000000000 -0800 @@ -6,4 +6,4 @@ #define __attribute_used__ __attribute__((__used__)) #define __must_check __attribute__((warn_unused_result)) #define __compiler_offsetof(a,b) __builtin_offsetof(a,b) - +#define __always_inline inline __attribute__((always_inline)) _