mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] uapi/linux/stddef.h: Provide __always_inline to userspace headers
@ 2016-03-29 22:14 Denys Vlasenko
  2016-03-30 10:52 ` [tip:core/urgent] " tip-bot for Denys Vlasenko
  2016-03-30 20:00 ` [PATCH] " Josh Boyer
  0 siblings, 2 replies; 3+ messages in thread
From: Denys Vlasenko @ 2016-03-29 22: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.

Unfortunately, UAPI headers don't include compiler.h and fixing it there is not enough.

Tested. Testcase: "make headers_install" and try to compile this:

	#include <linux/swab.h>
	void main() {}

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/uapi/linux/stddef.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h
index aa9f104..621fa8a 100644
--- a/include/uapi/linux/stddef.h
+++ b/include/uapi/linux/stddef.h
@@ -1 +1,5 @@
 #include <linux/compiler.h>
+
+#ifndef __always_inline
+#define __always_inline inline
+#endif
-- 
1.8.1.4

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

end of thread, other threads:[~2016-03-30 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29 22:14 [PATCH] uapi/linux/stddef.h: Provide __always_inline to userspace headers Denys Vlasenko
2016-03-30 10:52 ` [tip:core/urgent] " tip-bot for Denys Vlasenko
2016-03-30 20:00 ` [PATCH] " Josh Boyer

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

Powered by JetHome