Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244AbcC3KxH (ORCPT ); Wed, 30 Mar 2016 06:53:07 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43040 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbcC3KxE (ORCPT ); Wed, 30 Mar 2016 06:53:04 -0400 Date: Wed, 30 Mar 2016 03:52:03 -0700 From: tip-bot for Denys Vlasenko Message-ID: Cc: tglx@linutronix.de, dvlasenk@redhat.com, akpm@linux-foundation.org, jwboyer@fedoraproject.org, rientjes@google.com, tgraf@suug.ch, mingo@kernel.org, arnd@arndb.de, peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Reply-To: peterz@infradead.org, arnd@arndb.de, mingo@kernel.org, rientjes@google.com, tgraf@suug.ch, jwboyer@fedoraproject.org, akpm@linux-foundation.org, dvlasenk@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, hpa@zytor.com In-Reply-To: <1459289697-12875-1-git-send-email-dvlasenk@redhat.com> References: <1459289697-12875-1-git-send-email-dvlasenk@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:core/urgent] uapi/linux/stddef.h: Provide __always_inline to userspace headers Git-Commit-ID: 283d757378371e8044d873e661b1dccee46c5887 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1730 Lines: 47 Commit-ID: 283d757378371e8044d873e661b1dccee46c5887 Gitweb: http://git.kernel.org/tip/283d757378371e8044d873e661b1dccee46c5887 Author: Denys Vlasenko AuthorDate: Wed, 30 Mar 2016 00:14:57 +0200 Committer: Ingo Molnar 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 void main() {} Reported-by: Josh Boyer Signed-off-by: Denys Vlasenko Cc: Andrew Morton Cc: Arnd Bergmann Cc: David Rientjes Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Thomas Graf Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/1459289697-12875-1-git-send-email-dvlasenk@redhat.com Signed-off-by: Ingo Molnar --- 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 + +#ifndef __always_inline +#define __always_inline inline +#endif