[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459289697-12875-1-git-send-email-dvlasenk@redhat.com>
Date: Wed, 30 Mar 2016 00:14:57 +0200
From: Denys Vlasenko <dvlasenk@...hat.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Denys Vlasenko <dvlasenk@...hat.com>,
Josh Boyer <jwboyer@...oraproject.org>,
Thomas Graf <tgraf@...g.ch>,
Peter Zijlstra <peterz@...radead.org>,
David Rientjes <rientjes@...gle.com>,
Arnd Bergmann <arnd@...db.de>, Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH] uapi/linux/stddef.h: Provide __always_inline to userspace headers
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@...hat.com>
CC: Josh Boyer <jwboyer@...oraproject.org>
CC: Thomas Graf <tgraf@...g.ch>
CC: Peter Zijlstra <peterz@...radead.org>
CC: David Rientjes <rientjes@...gle.com>
CC: Arnd Bergmann <arnd@...db.de>
CC: Ingo Molnar <mingo@...nel.org>
CC: Andrew Morton <akpm@...ux-foundation.org>
CC: Linus Torvalds <torvalds@...ux-foundation.org>
CC: linux-kernel@...r.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
Powered by blists - more mailing lists