From patchwork Fri Feb 2 09:02:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xin Li (Intel)" X-Patchwork-Id: 195712 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp298468dyc; Fri, 2 Feb 2024 01:03:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdY3vha/zKUqD8KZuscfUPX+evDS+YOWges8wBAcGSusTCPxFD/qgR/n7wvWbNe3Cf6iov X-Received: by 2002:a05:622a:1b9f:b0:42b:f412:f2ec with SMTP id bp31-20020a05622a1b9f00b0042bf412f2ecmr4932913qtb.52.1706864624206; Fri, 02 Feb 2024 01:03:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706864624; cv=pass; d=google.com; s=arc-20160816; b=kY49mI/BdoGdynFj4X87tTQlIinpVXBGqs36TA0m3vqc47v7dWDcXdxUTeKkYNrwv2 pUwfwMMueAFfnt7FPEe8K1MMmeq69u+hK0qndGFNQHToaHTpaFwomtyNG76bJ9H/bp2i PzFSQlj1BN/neNAo1ELaxG+zOpWezoXeQSimxaTI2/D2y3sxCo664fBPOE3yHaMYbBse 2M6k/i64WX/+AdG4vnfIZ3y14Y563X0nzHzBpWtqfT0Hi/G2KPhmuLLbeTbsdS7s7E86 z3cHHlzS5Zpb76CtF9zXvjX+nmI6EjOAZxLhbJFINRAJAgd/URHoAzI2yw6XvK+b1r5E t8/A== 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=/2m3nOjtmTPOFj90Z4MKPqKMcwklfP+j+msya+oanSg=; b=oh0aAvZ6+ziFILtVfAj+BZZEDH7AQkaMRdWynJfifd1hDbAVmKWGvA8+ms+rHi+oBj mcJb+3qnhe9y418qY0qF0P3G7get2hkbNw8weTkdeETWrqT4xU02SScHYSC2fURwB/La V/RBp7IAFgKIpvuH+4KaHWlAFopxgZ/VLZLQrmTnoIRVJ6QOpO3Kx4vAz+oXsrraas// ejNJVw9f8M7TWVzkOW7R2NhbpICW2d6IFXyv90yrY9rhz9Ecd/ryTv/Qfm9vGZ3ZNURl NKEf71CQkiDgSjYFAouEouoDSD4Jro2HII8vKnOxABiWuNcwOHDArqGei5Ns3Ei9i/95 Irdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49526-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com X-Forwarded-Encrypted: i=1; AJvYcCV+HYZtDMJUTQ/wcLyQaVQ6EDYSOT6uxlvwfTdmfgalDLsndFGRMo/1+fg+xTlWqYWlK9zOvL6KIj5x5O+PK8TGoFGS1Q== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g2-20020ac87f42000000b0042bebf7d021si1515927qtk.351.2024.02.02.01.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49526-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49526-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 058E41C25B2B for ; Fri, 2 Feb 2024 09:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4E58745F9; Fri, 2 Feb 2024 09:03:32 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789777280491938161 X-GMAIL-MSGID: 1789777280491938161 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(-) base-commit: 208d8c79fd0f155bce1b23d8d78926653f7603b7 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;