Commit 4e9d864d authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[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: default avatarAdrian Bunk <bunk@fs.tum.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c4b43896
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* These definitions are for GCC v3.x. */ /* These definitions are for GCC v3.x. */
#include <linux/compiler-gcc.h> #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)) # define __inline__ __inline__ __attribute__((always_inline))
# define __inline __inline__ __attribute__((always_inline)) # define __inline __inline__ __attribute__((always_inline))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment