Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758290AbcC2WPH (ORCPT ); Tue, 29 Mar 2016 18:15:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33630 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753462AbcC2WPG (ORCPT ); Tue, 29 Mar 2016 18:15:06 -0400 From: Denys Vlasenko To: Linus Torvalds Cc: Denys Vlasenko , Josh Boyer , Thomas Graf , Peter Zijlstra , David Rientjes , Arnd Bergmann , Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] uapi/linux/stddef.h: Provide __always_inline to userspace headers Date: Wed, 30 Mar 2016 00:14:57 +0200 Message-Id: <1459289697-12875-1-git-send-email-dvlasenk@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 35 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 void main() {} Signed-off-by: Denys Vlasenko CC: Josh Boyer CC: Thomas Graf CC: Peter Zijlstra CC: David Rientjes CC: Arnd Bergmann CC: Ingo Molnar CC: Andrew Morton CC: Linus Torvalds 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 + +#ifndef __always_inline +#define __always_inline inline +#endif -- 1.8.1.4