[PATCH] uapi/linux/stddef.h: Provide __always_inline to userspace headers

From: Denys Vlasenko
Date: Tue Mar 29 2016 - 18:15:12 EST

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@xxxxxxxxxx>
CC: Josh Boyer <jwboyer@xxxxxxxxxxxxxxxxx>
CC: Thomas Graf <tgraf@xxxxxxx>
CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CC: David Rientjes <rientjes@xxxxxxxxxx>
CC: Arnd Bergmann <arnd@xxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
CC: linux-kernel@xxxxxxxxxxxxxxx
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