diff options
author | Adrian Bunk <bunk@fs.tum.de> | 2004-08-22 22:45:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-22 22:45:22 -0700 |
commit | 4e9d864d3d054c5acb3d4067c8157360dfb69ab7 (patch) | |
tree | fd3f0d72fb47037c855290d320189deff6ec713f /include | |
parent | c4b438961c11ae62ccf75279ad4f77600d62b232 (diff) | |
download | history-4e9d864d3d054c5acb3d4067c8157360dfb69ab7.tar.gz |
[PATCH] #define inline as __attribute__((always_inline)) also for gcc >= 3.4
Rationale:
- if gcc 3.4 can't inline a function marked as "inline" that's a strong
hint that further investigation is required
- I strongly prefer a compile error over a potential runtime problem
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/compiler-gcc3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc3.h b/include/linux/compiler-gcc3.h index b947762c6131a8..61f8cd034e7ec9 100644 --- a/include/linux/compiler-gcc3.h +++ b/include/linux/compiler-gcc3.h @@ -3,7 +3,7 @@ /* These definitions are for GCC v3.x. */ #include <linux/compiler-gcc.h> -#if __GNUC_MINOR__ >= 1 && __GNUC_MINOR__ < 4 +#if __GNUC_MINOR__ >= 1 # define inline __inline__ __attribute__((always_inline)) # define __inline__ __inline__ __attribute__((always_inline)) # define __inline __inline__ __attribute__((always_inline)) |