LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Stop making "inline" imply forced inlining.
@ 2007-01-19 16:56 Robert P. J. Day
  2007-01-19 17:25 ` Adrian Bunk
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2007-01-19 16:56 UTC (permalink / raw)
  To: Linux kernel mailing list; +Cc: rth


  Remove the macros that define simple "inlining" to mean forced
inlining, since you can (and *should*) get that effect with the
CONFIG_FORCED_INLINING kernel config variable instead.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

  this change was compile tested on x86 with "make allyesconfig",
followed by turning off forced inlining.

  now the alpha folks can simplify their compiler.h file. :-)


diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index 6e1c44a..5a90bd9 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -23,9 +23,6 @@
     (typeof(ptr)) (__ptr + (off)); })


-#define inline		inline		__attribute__((always_inline))
-#define __inline__	__inline__	__attribute__((always_inline))
-#define __inline	__inline	__attribute__((always_inline))
 #define __deprecated			__attribute__((deprecated))
 #define  noinline			__attribute__((noinline))
 #define __attribute_pure__		__attribute__((pure))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-19 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-19 16:56 [PATCH] Stop making "inline" imply forced inlining Robert P. J. Day
2007-01-19 17:25 ` Adrian Bunk
2007-01-19 17:39   ` Robert P. J. Day
2007-01-19 18:40     ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).