public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] compiler.h: Provide __always_inline to userspace headers too
@ 2016-03-29 18:14 Denys Vlasenko
  2016-03-29 18:23 ` Josh Boyer
  0 siblings, 1 reply; 4+ messages in thread
From: Denys Vlasenko @ 2016-03-29 18:14 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Denys Vlasenko, Josh Boyer, Thomas Graf, Peter Zijlstra,
	David Rientjes, Arnd Bergmann, Ingo Molnar, Andrew Morton,
	linux-kernel

Recent change to uapi/linux/swab.h needs this.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Josh Boyer <jwboyer@fedoraproject.org>
CC: Thomas Graf <tgraf@suug.ch>
CC: Peter Zijlstra <peterz@infradead.org>
CC: David Rientjes <rientjes@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Ingo Molnar <mingo@kernel.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linus Torvalds <torvalds@linux-foundation.org>
CC: linux-kernel@vger.kernel.org
---
 include/linux/compiler.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index b5ff988..2cb6ba4 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -397,12 +397,12 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
  */
 #define noinline_for_stack noinline
 
+#endif /* __KERNEL__ */
+
 #ifndef __always_inline
 #define __always_inline inline
 #endif
 
-#endif /* __KERNEL__ */
-
 /*
  * From the GCC manual:
  *
-- 
1.8.1.4

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

end of thread, other threads:[~2016-03-29 18:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 18:14 [PATCH] compiler.h: Provide __always_inline to userspace headers too Denys Vlasenko
2016-03-29 18:23 ` Josh Boyer
2016-03-29 18:30   ` Andrew Morton
2016-03-29 18:35   ` Denys Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox