Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757322AbcC2SO1 (ORCPT ); Tue, 29 Mar 2016 14:14:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbcC2SOZ (ORCPT ); Tue, 29 Mar 2016 14:14:25 -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] compiler.h: Provide __always_inline to userspace headers too Date: Tue, 29 Mar 2016 20:14:19 +0200 Message-Id: <1459275259-28040-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: 1016 Lines: 37 Recent change to uapi/linux/swab.h needs this. 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/linux/compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index b5ff988..2cb6ba4 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -397,12 +397,12 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s */ #define noinline_for_stack noinline +#endif /* __KERNEL__ */ + #ifndef __always_inline #define __always_inline inline #endif -#endif /* __KERNEL__ */ - /* * From the GCC manual: * -- 1.8.1.4