[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-283d757378371e8044d873e661b1dccee46c5887@git.kernel.org>
Date: Wed, 30 Mar 2016 03:52:03 -0700
From: tip-bot for Denys Vlasenko <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, dvlasenk@...hat.com, akpm@...ux-foundation.org,
jwboyer@...oraproject.org, rientjes@...gle.com, tgraf@...g.ch,
mingo@...nel.org, arnd@...db.de, peterz@...radead.org,
hpa@...or.com, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [tip:core/urgent] uapi/linux/stddef.h: Provide __always_inline to
userspace headers
Commit-ID: 283d757378371e8044d873e661b1dccee46c5887
Gitweb: http://git.kernel.org/tip/283d757378371e8044d873e661b1dccee46c5887
Author: Denys Vlasenko <dvlasenk@...hat.com>
AuthorDate: Wed, 30 Mar 2016 00:14:57 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 30 Mar 2016 12:50:17 +0200
uapi/linux/stddef.h: Provide __always_inline to userspace headers
Josh Boyer reported that my recent change to uapi/linux/swab.h broke the Qemu build:
bc27fb68aaad ("include/uapi/linux/byteorder, swab: force inlining of some byteswap operations")
Unfortunately, UAPI headers don't include compiler.h so fixing it there is not enough,
add an __always_inline definition to uapi/linux/stddef.h instead.
Testcase: "make headers_install" and try to compile this:
#include <linux/swab.h>
void main() {}
Reported-by: Josh Boyer <jwboyer@...oraproject.org>
Signed-off-by: Denys Vlasenko <dvlasenk@...hat.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: David Rientjes <rientjes@...gle.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Thomas Graf <tgraf@...g.ch>
Cc: linux-kernel@...r.kernel.org
Link: http://lkml.kernel.org/r/1459289697-12875-1-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@...nel.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
Powered by blists - more mailing lists