Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1631241lqm; Fri, 3 May 2024 01:14:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXS5QAXgRIbR0JHgAa2Kl5oxQ8TnAK3Vkpj7YoHc40+WXLK4yUDnfqoouPkD2prxKGawGzDfpw7VKPZNOxxRymv3uZKqEGE6Lym3zJZow== X-Google-Smtp-Source: AGHT+IGXhLQyccsVMYRqjyXXV9CwmQb1iVR5rGqOQzGSO3Sxp+S8ViqoR/UckvtfgaqZur2/wwX2 X-Received: by 2002:a05:6871:582b:b0:22a:828b:57ea with SMTP id oj43-20020a056871582b00b0022a828b57eamr2332783oac.53.1714724060241; Fri, 03 May 2024 01:14:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714724060; cv=pass; d=google.com; s=arc-20160816; b=Tere3mPw1vmFfpTaMvqJHZWf3mUcCls/Au/RgooYBKXs4QMhq9wKt0ztFO2zG8n3ZM VoG9nSwSgHLKLZYGaQmwVoQM3CLo31bZsF90fiVmruKmoWG41zRwwVzx6UNkJnucwkIc +YwBHlVpdbgtvdW82CbMKCqs21BJubXZn4g6TbBONkAXKQtRZnaXb4KpkN20gZYIXBeO 6PpChN0b7VjvEKal+D7qPvAFwNrf2JjHZH1J9Lc/d/0SQbQK8XqipwDkP8VQzePpPhel JlZo2tMHpiEYM2qw+NrhABkPrlB/U5CNG6MGvxlvWbHv5opy4061jGPuhcRyj3rJ+dnd X1uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=T11nT3s+mCgrCEZUO/uuqrK7i86I4eOMkT6WEUFxQgE=; fh=KsdebulFSTDgUgDP2OamvZF2uEg8nzoUdEjFl7UPhdc=; b=wOzNmOA8zCN/RVZYb2a0pSse/aKsAvAA97zb9HThSKlFga4pKnnLxDJYAHW4XClphu 4rnEydd+8hSfsJn4PT9an91pnbuWnUt7dCWhfR0z5Ncv+Qs53rmiQB5zKbMHSw30TrPu jJnW261bgKh4K9nv1xST7PBZPcpZxKZVs2YWDVBpKRQY+1zGXj71cIxNHqlGAOHsKFSz SsvjVENp23353gP61+Zr/gUniMD12g1LnRLfGN+lxwWRYuG+FNe8nRBaJJZ3gQ0/aPAs frhbjNKsbRbUHj34FyIo9zou93hf9kBMff3tcREmJsTi59tTuAMnyHQH6AieJpX+O1wU vp6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExymHTvj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e19-20020a63f553000000b005ee3f1a2d57si2597769pgk.885.2024.05.03.01.14.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExymHTvj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167360-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9BD4C281D64 for ; Fri, 3 May 2024 08:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB7BE14F9EB; Fri, 3 May 2024 08:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ExymHTvj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBD0C14F9DA; Fri, 3 May 2024 08:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723947; cv=none; b=J9jwaLS36I1uskhQBdPjEf2iBIPvSvOzmgZ+nGPHg7CQk+iYq79HZEg4avm0Y9bw49TvcHh6ZGVABDS+hu9DiuHopQ+rDd8TC/ERurKtGLQs/6xxI+h6GFuLH4Lml6oQVVNijujg19MXxOijzpSFcGj56tVrhqVA2xUSOriFtVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723947; c=relaxed/simple; bh=hBY4yzirR+6peUPSmr/L6JeuzaTkaL7zjOUip5Zgez4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PeJqu6Ie8+qJOqcWlO4LBEX6VeCVaSyFjYTMq3xePvAZ7SKMDu1ap6N4q8gGfQP9vmlWuCG0fOIqg+XCpa3pNt06RcldjQJv91yo30ozzVOaxvYHWBSXSVR2gn5vdppu0delDXzMp7nIpO/rpaWvPcSj9n5J7HzPRsjLWvB5f50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ExymHTvj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82BAFC116B1; Fri, 3 May 2024 08:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714723947; bh=hBY4yzirR+6peUPSmr/L6JeuzaTkaL7zjOUip5Zgez4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ExymHTvjQ8CJTlsT8pDeCTWElcNO1CBiAhG8iTFM8EjWM6V3mNOwq4K8zwFxF0dFL h5CyAuZBkoghIoiOSwJFHGF18cHqnb3UC0wa3iTSoWvZZfpJEqj0Kx9oeUA0oY9BI1 zTU9KigRv+wKyeY96tPbQJ7aADviH3+ucfKceizCwUm5BZeHZzJKFgcWDqDf+j/lB1 JJvXNzbaFYqRqhPa4Jq1RCg4Kpu8pXwib1KAwgidJKh9lfKW67jC5Bz3r+s25YGng/ l1wB14nREqmnpqOmLiQVXdfJsWZjGnnvSaBZX6LPD+Y+gYf3bQpX03v4wsXXmg5Hbj PeOEnSXAuLfQw== From: Arnd Bergmann To: linux-alpha@vger.kernel.org Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Alexander Viro , Marc Zyngier , Linus Torvalds , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: [PATCH 08/14] alpha: jensen, t2 - make __EXTERN_INLINE same as for the rest Date: Fri, 3 May 2024 10:11:19 +0200 Message-Id: <20240503081125.67990-9-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503081125.67990-1-arnd@kernel.org> References: <20240503081125.67990-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Al Viro We want io.h primitives (readb(), etc.) to be extern inline. However, that requires the backing out-of-line implementation somewhere, preferably kept in sync with the inline ones. The way it's done is __EXTERN_INLINE macro that defaults to extern inline, but can be overridden in compilation unit where the out-of-line instance will be. That works, but it's brittle - we *must* make sure that asm/io.h is the very first include in such compilation units. There'd been a bunch of bugs of that sort in the past. Another issue is the choice of overriding definition for __EXTERN_INLINE; it must be either 'inline' or empty. Either will do for compilation purposes - inline void foo(...) {...} (without extern or static) is going to generate out-of-line instance. The difference is that 'definition without a prototype' heuristics trigger on void foo(void) { ... } but not on inline void foo(void) { ... } Most of the overrides go for 'inline'; in two cases (sys_jensen and core_t2) __EXTERN_INLINE is defined as empty. Without -Wmissing-prototypes it didn't matter, but now that we have that thing always on... Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- arch/alpha/kernel/core_t2.c | 2 +- arch/alpha/kernel/sys_jensen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/core_t2.c b/arch/alpha/kernel/core_t2.c index 98d5b6ff8a76..3d72d90624f1 100644 --- a/arch/alpha/kernel/core_t2.c +++ b/arch/alpha/kernel/core_t2.c @@ -10,7 +10,7 @@ * Code common to all T2 core logic chips. */ -#define __EXTERN_INLINE +#define __EXTERN_INLINE inline #include #include #undef __EXTERN_INLINE diff --git a/arch/alpha/kernel/sys_jensen.c b/arch/alpha/kernel/sys_jensen.c index 5c9c88428124..a1bb1c4a7e93 100644 --- a/arch/alpha/kernel/sys_jensen.c +++ b/arch/alpha/kernel/sys_jensen.c @@ -7,7 +7,7 @@ * * Code supporting the Jensen. */ -#define __EXTERN_INLINE +#define __EXTERN_INLINE inline #include #include #undef __EXTERN_INLINE -- 2.39.2