Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp705257rdb; Fri, 2 Feb 2024 01:03:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcgJdjg0f6rc+QB4tipY8CGcVMoXZ3p7igWjFF3C7dko11kOShRs/W3y7Ovxvz30k5JKYP X-Received: by 2002:a05:6402:17cc:b0:55f:3975:209c with SMTP id s12-20020a05640217cc00b0055f3975209cmr4088859edy.18.1706864617438; Fri, 02 Feb 2024 01:03:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706864617; cv=pass; d=google.com; s=arc-20160816; b=XXI+aB3wKpgs121UW2RphjyJny4+FdiPq5KmdANhgS/KxOh+MS9tldoPRf4hzrhHXV zab6TnElT1r8YGSR4BSIqOS+ob+rXACCQDiSXqbVmEFd1SpkcFiGm0cEf5z+sGo/pjid 8mIayf8W3Dgzvo24S9Xz39sjDuyHohelhfmQHex7PWqlET4K4AIGtKGMPXl0kT8rbjHU Sc5HEAwZFmYTkHb5QO/sWhXn2HdDVdIDNM9AgqZ27GAIEOE+OBSgMR1FzULmGuiuD6Gd i+RqTLAk0Mh/xLZF68JntV1QJzDCk4duaSlK8FSOvd0Xy+QU0YmKxfUfR1Mu0E3LFzFm SEBw== 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:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=tgJVLIOaqTWEKblzYegcEPlggy9ZwJZR9Relq2fS08A=; fh=y0rXsKDI8/yyjtmDLF9KnZ6x4coQbIb+GrtBOQxa3oQ=; b=k0C8i6p5GDBQ8mFjBU4nJNBh1/ROzCWxntRSQjiCc612MCMk9bRq9JUFdjf5AgRb2s 43y+xjiPzar8+cJx/VD2/sJ4AlRjN0BA12WqlY7LLt7AIT65xQzkP4OHLZBZIvPzJR6q H2cKgiK8yrq5V87J6pWmy4KsqZqM0kyAQZ3qftdFMEi82UDNRm2wXgja11bHx6VlrRGa QMCfOzWHgevwdSWIJZT9mIacO9YBg23JXxi/t3xKuHlvJ3YC7Qn613TYfpFGZsOo6/R/ SPGkV0FWx+ogjmhw84TsHFZZga76cOqUR+fyhNDjVt/moekT9k9v6S8BEhSM19NAtv69 HLgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@zytor.com header.s=2024011201 header.b=Obbk0Wwj; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-49526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com X-Forwarded-Encrypted: i=1; AJvYcCWAyWh/SWnbN56ndBY09Y3zsyqiPqbJZ5dJhOduaPEpBXr0mTDPBWv+bmulPT9cBFWy8MneNsyCZTOEVl/T9VN42S6w670v8LFzkBdkJw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z21-20020a05640240d500b0055e23113314si600339edb.657.2024.02.02.01.03.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:03:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@zytor.com header.s=2024011201 header.b=Obbk0Wwj; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-49526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3256C1F26615 for ; Fri, 2 Feb 2024 09:03:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABBA761674; Fri, 2 Feb 2024 09:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="Obbk0Wwj" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 17E125FDBE for ; Fri, 2 Feb 2024 09:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706864609; cv=none; b=MiiwRiWj233L3BV6gWE75M/Vv7xjL797GuPtWW4viHnCQ/ou25MLT0h0NDw0RcsrOASNgcZf8qtqtOSLXQUeI4ZKzoXqUupTKzOk3xNNb/Fhm2tcQKsI4ViPxkrMMX1Ler5oGQc4n+FGA4ruWPOPw8xpiLWN4NptIoZSGfWzt6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706864609; c=relaxed/simple; bh=CDNDfApB9J/0Mo/v5bcYk9hHAjVgb50qdPNZKhoMavs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dVkLLcQARD1A/Qy1NVIlISZBBnhLaiDKto/yBRF9fuGpottZL5XcywIuZ5uHDSVVW+TjE7ySVofHCq1pQlfwGvadJvFv7HodocUyzm+FgocrXNcBaT/WgqYVYVl+LTBwYKP6k+ZKlPo8xp47P+lwr/DQ/m25XX4bBs7Kub0YE/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=Obbk0Wwj; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from terminus.zytor.com (terminus.zytor.com [IPv6:2607:7c80:54:3:0:0:0:136]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 41292Quf322558 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 2 Feb 2024 01:02:30 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 41292Quf322558 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024011201; t=1706864550; bh=tgJVLIOaqTWEKblzYegcEPlggy9ZwJZR9Relq2fS08A=; h=From:To:Cc:Subject:Date:From; b=Obbk0Wwj92zGl1WuVKYJihGs+dBMEkJwIBrBtDEpFNvIRwHbZZazIfhuD0ktbxmFv kzZsz2/jqpRlkZ9/eOtRegQxyYMPSdWEDDbtNk8yLsDK4TGTF2ZnomwhqL+JonEIkH 92Nj4y8SsIdcG29xDd0mjoqPhg5MPC8MA76VELP6rpZyabYnX15YsD/clwMIQ8hIGG ubMyXRRCHyIoFFVG+xfEz9RQ+DX3ZzDzetEpTg51kDW3P0BPb081Pa3GfYNzFC+Jc/ Lb3KYlHL7oCrnP2GlqFtM43EFMoA5WMh/sIbi3+vV5QT5fQIy9zFxQydpOevL0Xa5l xKiGBWAH/jmCA== From: "Xin Li (Intel)" To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, sfr@canb.auug.org.au Subject: [PATCH v1 1/1] x86/fred: Fix a build warning with allmodconfig Date: Fri, 2 Feb 2024 01:02:24 -0800 Message-ID: <20240202090225.322544-1-xin@zytor.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Change array_index_mask_nospec() to __always_inline because "inline" is broken as https://www.kernel.org/doc/local/inline.html. Fixes: 6786137bf8fd ("x86/fred: FRED entry/exit and dispatch code") Reported-by: Stephen Rothwell Link: https://lore.kernel.org/lkml/20240201111453.0ee3beff@canb.auug.org.au/ Signed-off-by: Xin Li (Intel) --- arch/x86/include/asm/barrier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/barrier.h b/arch/x86/include/asm/barrier.h index 0216f63a366b..fe1e7e3cc844 100644 --- a/arch/x86/include/asm/barrier.h +++ b/arch/x86/include/asm/barrier.h @@ -33,7 +33,7 @@ * Returns: * 0 - (index < size) */ -static inline unsigned long array_index_mask_nospec(unsigned long index, +static __always_inline unsigned long array_index_mask_nospec(unsigned long index, unsigned long size) { unsigned long mask; base-commit: 208d8c79fd0f155bce1b23d8d78926653f7603b7 -- 2.43.0