Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp67088ybe; Thu, 12 Sep 2019 15:48:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqykzvJvbkkS/0T6APixi0pa7nzsUrHAYLai6Ktu1gO1DE41NuB5zbUM5gqIr91mggbQ8eU/ X-Received: by 2002:a50:f789:: with SMTP id h9mr45118487edn.139.1568328489763; Thu, 12 Sep 2019 15:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568328489; cv=none; d=google.com; s=arc-20160816; b=CW1LgdemRBgfOABMB8fWs6AI/TVK5wRh1SBld2879hgrNqQRePgl3Lkgxl9JTuvfoU Z48cnuXKBcvx56vFV9qgWZiwMk6Xi3LHjE8YwX9CDKobFt7GU3fSH+5W9vEiTGNHK+rp vI0v4AcpvTufhLtSjMheWNL0qSy2HuwwkKwy8kku0DoZmSy9NkNi8ymJ3KBBK3tDyPl2 LH8THjRRCpnX0PibVcK82CWpSSfkoQqMQ9bCaZ96U3kwaG+zadUL7FgtKFNuYl9utx6f 8uhn4wOapxSN+M+Pc6Y7SlTz55yWOatsFu5AJe2KxGXeiZMTJXxoqqpirGg4hWvWS4EA Q8ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J/Zs3M8U4xSGbreIPfz9YMDfpqs2smNfuk85ROC+apU=; b=k1D9x/aF9ICN/8ypefRO8Fhtzkz4oc3+CotzrQ7ETPCEnj8aW2gmRBE33Qpea0nZdO TkPGTX1qR62G8pN4BrfrGdVJgupCMkdEsv7RTqrzR10FeVJ0bDKPoU2/rK3pzT2PN31f NLIS19hOr32ilriLMBPlz03gAfflcdf+ZU5OpuzUCp4U5lpcjpiBbFVETTFtcYDvq2d2 bxyHHhvHPioNJMf0SG63BtmVq9c+MXhZwX6nJrBvWtCnJMCvio13HQ+tNdOiVt0vsq8o HvDqMWupS8faGx7sSPpdbl6HlP+vCOxUTIkJxahMscdY1Ur6u4+UTHQQ5rvaYtzLlEbY QnbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=VlWJzeFU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si13200024ejn.179.2019.09.12.15.47.46; Thu, 12 Sep 2019 15:48:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=VlWJzeFU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729343AbfILWTt (ORCPT + 99 others); Thu, 12 Sep 2019 18:19:49 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39764 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfILWTr (ORCPT ); Thu, 12 Sep 2019 18:19:47 -0400 Received: by mail-ed1-f67.google.com with SMTP id u6so25329752edq.6 for ; Thu, 12 Sep 2019 15:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J/Zs3M8U4xSGbreIPfz9YMDfpqs2smNfuk85ROC+apU=; b=VlWJzeFUMiBdShxxsRCMtQDi2X3BEYTsY+qF61Ym60/yomCJcq1ZK2npVmras1QC+O rZQw0OxEbN+rLICZpxnRxVeZf//HiYpNhHxqzS44MG+aK+swfNz2beu3YF1/DkjTQdJg mU8QEr32VZCpC0nOqS5XO7+hrmZQXMY2/Au3c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J/Zs3M8U4xSGbreIPfz9YMDfpqs2smNfuk85ROC+apU=; b=oS5KJvkJa48vcUR27cKXGUx0r4KShaBZiEkOAY+ZGsQyf7guNWaTrNgOn9pP22AJAT 4Zren/NJmnMgFqB6Q0fF9L55gTZOCeXK71iqn/UXg95wi93UScCo2a0HinKzXkMmtBlx xnHelUoYlj5kWp0UPXo429XvsfYic1l0a0dNRs5/ohmAjme/sLhnp/osKZFY0Pk0bej1 Hkvjgcm88RdykSgu43Nhf+4G2ZGGMIkk5YIJA0j6gNizwXlzk2MdWyWIYUmrgX7bvrhT JIFcjPRs9Pyi+unO8qUWHvE3M38F/OrNkU3+0fqwjZAElRYqn4jNGmFhCu349y/lO1c7 UlfA== X-Gm-Message-State: APjAAAXTlP6YtD7PUfdoEp0SEh0tBaFD/Div9RSw0GzVSm0Ia4bjBdgu nhSYv9kCdsknoukOCi1hhIH0ww== X-Received: by 2002:a05:6402:17aa:: with SMTP id j10mr44115355edy.222.1568326785970; Thu, 12 Sep 2019 15:19:45 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-115-35.cgn.fibianet.dk. [5.186.115.35]) by smtp.gmail.com with ESMTPSA id 36sm4305228edz.92.2019.09.12.15.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 15:19:45 -0700 (PDT) From: Rasmus Villemoes To: Miguel Ojeda , ndesaulniers@google.com, Masahiro Yamada Cc: Greg Kroah-Hartman , Ingo Molnar , Linus Torvalds , Nadav Amit , x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Rasmus Villemoes Subject: [PATCH v3 3/6] compiler_types.h: don't #define __inline Date: Fri, 13 Sep 2019 00:19:24 +0200 Message-Id: <20190912221927.18641-4-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190912221927.18641-1-linux@rasmusvillemoes.dk> References: <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190912221927.18641-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The spellings __inline and __inline__ should be reserved for uses where one really wants to refer to the inline keyword, regardless of whether or not the spelling "inline" has been #defined to something else. Due to use of __inline__ in uapi headers, we can't easily get rid of the definition of __inline__. However, almost all users of __inline has been converted to inline, so we can get rid of that #define. The exception is include/acpi/platform/acintel.h. However, that header is only included when using the intel compiler (does anybody actually build the kernel with that?), and the ACPI_INLINE macro is only used in the definition of utterly trivial stub functions, where I doubt a small change of semantics (lack of __gnu_inline) changes anything. Signed-off-by: Rasmus Villemoes --- include/linux/compiler_types.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 599c27b56c29..ee49be6d6088 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -150,8 +150,17 @@ struct ftrace_likely_data { __maybe_unused notrace #endif +/* + * gcc provides both __inline__ and __inline as alternate spellings of + * the inline keyword, though the latter is undocumented. New kernel + * code should only use the inline spelling, but some existing code + * uses __inline__. Since we #define inline above, to ensure + * __inline__ has the same semantics, we need this #define. + * + * However, the spelling __inline is strictly reserved for referring + * to the bare keyword. + */ #define __inline__ inline -#define __inline inline /* * Rather then using noinline to prevent stack consumption, use -- 2.20.1