Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1329663ybl; Fri, 30 Aug 2019 16:16:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEXLOrR1Jot7M/K1lu00U12ipoxysCWSqgHq43QAIm5KZP3x+Jhd9QVdpdZ9igXrqe/Gm1 X-Received: by 2002:a62:7d0d:: with SMTP id y13mr20198407pfc.150.1567207008145; Fri, 30 Aug 2019 16:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567207008; cv=none; d=google.com; s=arc-20160816; b=s34yUpm79Ebbke5qjlEoAt0twDzllZaWp1Pov0EsYBDAX1lnNJG1LwZYrkOme5ap+t JtxV/lr6llmUHbR3+fDZoPnCKZdpaGhLcZWrxizT9PoBR6xCxivzBhY0zE0vVLHfOLeX 4h1OxkemlPsvSJLUXlUb0tS03sfrP1Dey8pLYbgSt3ZWGi7SyvYOCw2PZyIb3TxuLXJ3 lQAd2kA4aIxZttjAu3KfNiXkTVjdaD0r9uGUkX0oRVZPTecuJ/GM2x6Ltqt11t4AD+Ja o15tnyJRW74rv9++zXXcuG/e3chVfmbGgbtLFrib3/EPTehF0N1ZrYsddL3PZAPa1vS7 tJGQ== 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=VD+FRCH70Lt2RwLgkTTFV/y/veDt8Rr9G7ZSsdInL5iLHQ7k+Ow96OBOdpjdq+C+ek hCxUlFzLT1DC4HcJZeaFoPYBo3e8uR32aOt5eYJkpi4ovTD5yphtqrPX451NS9TCn0zz aJfsueVXU+wsGAYY6r6GsoQx0pbnRHfYm5YWp8FAumeUO1bDN8HbxLul5WI5YmOBd9pw JsgNpt+rD1hFuRiS+LtfyFLcuGlR8wnQFBQsdO3MOPtMz47Hzu4j/4nWC3kV94ZDnjWk resMXERHZeP7qJCC4yOaz/GNvLOgOeg6EO+xGcXnCm86vYSqB7PnCDC3y0JX0s6CrNgE HXRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=MvXWFH6f; 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 g12si1313773pgr.238.2019.08.30.16.16.33; Fri, 30 Aug 2019 16:16:48 -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=MvXWFH6f; 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 S1728486AbfH3XPk (ORCPT + 99 others); Fri, 30 Aug 2019 19:15:40 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38232 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728423AbfH3XPi (ORCPT ); Fri, 30 Aug 2019 19:15:38 -0400 Received: by mail-ed1-f66.google.com with SMTP id r12so9739271edo.5 for ; Fri, 30 Aug 2019 16:15:36 -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=MvXWFH6ftQzG8wWiBOpbSjKuTH4p25AU6oyHSkugbesKwVToHwqjPWARvv4qzk6ky3 NHRmgqltPXivqanNUfLAufvxTcIPXh6edYpWOLItncjHzLJ7uhdWVIeq8hwrq6zKou12 JHESRNTz9fQfjhmk7rGJtglpOeOwWZM61cMXQ= 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=PGKAvQcdocVUjVg2YrNiyTCYVKiyFYJDTuqGih3XdR209CcA0Uz8DJflKlLZTArT+l 91MwZqC8zNPMrjneW1fHB2exAA1DXiNvSswwF57OLZeRzzRBphwVW3PLE+mS3spkPkUa ddenIV26g2kZXEfhql/kwyL1qF/JHObtU8zY9gQpJY7Oorq2PhDtf8+z2HH9Qi2yampO dCcB5TVcQJNLs6JASxwfNPYikLv8jR2QFao499Vwr1pdBccuwaDJ075LEJI3ScVvMvep aBjgjQsL9qj7i0wvXpd2CnHc1zoNPi/cDjNRnGmLv2gpuSDqCCCAHZNe77tHFg15CpkV nk+A== X-Gm-Message-State: APjAAAW1FmOPga3LoRHOFxqpyXTHy4JkgpebyLY1D58S8SN3V1OK+yBP Agn6Fjy61nbrEFGONQ5mVFr1Bg== X-Received: by 2002:a50:d48b:: with SMTP id s11mr10309799edi.253.1567206936269; Fri, 30 Aug 2019 16:15:36 -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 s4sm875457ejx.33.2019.08.30.16.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 16:15:35 -0700 (PDT) From: Rasmus Villemoes To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Miguel Ojeda , ndesaulniers@google.com, Rasmus Villemoes Subject: [PATCH v2 3/6] compiler_types.h: don't #define __inline Date: Sat, 31 Aug 2019 01:15:24 +0200 Message-Id: <20190830231527.22304-4-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190830231527.22304-1-linux@rasmusvillemoes.dk> References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-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