From patchwork Mon Mar 4 12:15:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 209514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1378838dyc; Mon, 4 Mar 2024 04:15:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7cgvQm+sbRWBD5VCRXwOotlxM1RGsSPd0hhYFPcGOetJPqbbG1xuTg2r9azbAslBlHukAK89mGohgy9G+dmUM04HAaw== X-Google-Smtp-Source: AGHT+IGD1vZZe9V3bo40XO3OGZtogC6W7A1i+cFnU7faSSiFUfHO7/mXszqi0FOMB4euvUiFy2Se X-Received: by 2002:a17:902:e88f:b0:1d9:9c96:673c with SMTP id w15-20020a170902e88f00b001d99c96673cmr9709407plg.46.1709554551547; Mon, 04 Mar 2024 04:15:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709554551; cv=pass; d=google.com; s=arc-20160816; b=Aq7wxYaHiBgwLORRR6P89bqxNu+u8NpimtCcGrxoad9nIe3Bz3kauGFyV2ppFjJtN2 C7N1QvZOU5OXCYynrvfC0gBP8Z630vIs0zMrKMhQtWyKdrFhPAyWrLnEd5vNoLRl0EdF 1MQJxIFk8f+5oiJzR/JfoeL+aLMl0xU+EaJ5fyQ0GeIzgcQgLYdHYDK58+e3svUTXfV5 uuaDSB9vb5BRs6LOmBJ3H63w+FsHw8hG5mH0h9UZyuYjuJYmrv1DMl1bijVfQDP82dVT c7q/t0IhwAP8De1P4Ff2Wuytl4x0qqEbVWdEalA1XeU1lc2/7xbakpcHgmnbuFgicsiI N0IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=sIhrgrHBnHrRIKUrM/taT00TdU9ovrNieXezNI1Kd+M=; fh=ug+vbjx3hYEyfsB5aHBhxI+u027oSYAUfnsAoBvj5oA=; b=RW/7VcVkvDSmUd/Fxiwwdfosl3xLXnoPnPJ7JTdGnXpcqOE/PNxNCoADAZZ4FCkN/J Glai7XdwHQJEhdOIS2F976b16GSDnL6+1S2u9kcgx8aQsRj0IFBd2tqHVYNGNHrvMRgU 7H2EsJhK7IfospxOjqTfE9Zp1vdMP93p4Yi4dW2p96pBFmbROsxNrjSFu/C4B8nri4TH G2VdysKy8kOLaTWPm+WBtT+rrDnvrYUAxAprMltaiAcIEAQ0AftEXZNjXEWosLWH8Nwf d1dCA2CMFsHr4pHeTkTcliqTY1ykwiSkDKwaGwjuMscryDFjE2RV11hakt4tonBQPxrY H8UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="0v/CEmQX"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-90551-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90551-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k14-20020a170902d58e00b001db4975121csi8513183plh.494.2024.03.04.04.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 04:15:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90551-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="0v/CEmQX"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-90551-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90551-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 60257281CAF for ; Mon, 4 Mar 2024 12:15:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 095DC3D3B3; Mon, 4 Mar 2024 12:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0v/CEmQX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F6IWcZnD" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C85873B299; Mon, 4 Mar 2024 12:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709554508; cv=none; b=L9xJFm/2HK7wHp7tjUIjsVq+TdZAnkaJsqKv7ER4xWsLUVuYiG22IyqcCt2AkWifBjyTDMnap2WDSo3CIEfu1Iv9jM9wCYQ9D13T8ZswkX4MFU0u6ZjXB1jlRYT/tb16NRQkUaRPQj4R88TeIGwCZH0TiNO81z3THw567tqkYAE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709554508; c=relaxed/simple; bh=Cht3KwzEy01gpPcomWQCxxHp1q5bdvzLjZL+3MLEnWg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=VuisPGtFrgllZGpBwT6ueaS78GlJuq9lpYX60zJcm/USkyDC97O/9SxBH47V029Xg1clUd8fs+E52eXPwISaMd/HRLINQh+gfIDMAiGc0kZ04lPUp5bVFm8OI3YHv6tKOZkGG9v7hZPnNt7u/YE50SQzyEFoCxiaCClbUsAjFrA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0v/CEmQX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F6IWcZnD; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 04 Mar 2024 12:15:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709554505; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sIhrgrHBnHrRIKUrM/taT00TdU9ovrNieXezNI1Kd+M=; b=0v/CEmQX0JSuw1+YPB7clJ9PLkqR4eZ4BtUGa4Tou1wZDhIj5nxbawp1iH5Ka4zAYAfp+I hv+BM2WD2ltIBep5XSli0PDVGAd7jdxSnj2NqGvR1ORLas2k1CYhXNTUmiCKCOVnIpPipr Q03gCR6v5YBH+DuZzWAcyLSlcki01winu2sY+IO9qpHAfbVYBZFs3gIBJ5GD5B/Ph7sjhz xtyg85qmlDJWNxLr4nVnwoGZ9hBRjYSmWSNkroXNWaGQ+fsc+DK18adW1jndtb/tMtMYBc IA+jQpw+Z8nVIhsKxERG9j4uE+1WwdfdAviapCd+BNvZpjDLNml3itLIIRUbNQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709554505; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sIhrgrHBnHrRIKUrM/taT00TdU9ovrNieXezNI1Kd+M=; b=F6IWcZnDTSRE/LjScbEsV+4sIK0gyTuV7Zru0YjajvdfKMtK4H5KxPXfUzsy3ejMEmBSV/ joLFdV2bsM/HVoAA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/cpu: Use EXPORT_PER_CPU_SYMBOL_GPL() for x86_spec_ctrl_current Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240304005104.732288812@linutronix.de> References: <20240304005104.732288812@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170955450435.398.16469805838479350464.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792590326108418569 X-GMAIL-MSGID: 1792597873209803699 The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: ca3ec9e5540428afa3d372fb39f0d88c4f44af8b Gitweb: https://git.kernel.org/tip/ca3ec9e5540428afa3d372fb39f0d88c4f44af8b Author: Thomas Gleixner AuthorDate: Mon, 04 Mar 2024 11:12:26 +01:00 Committer: Ingo Molnar CommitterDate: Mon, 04 Mar 2024 12:09:13 +01:00 x86/cpu: Use EXPORT_PER_CPU_SYMBOL_GPL() for x86_spec_ctrl_current Sparse rightfully complains: bugs.c:71:9: sparse: warning: incorrect type in initializer (different address spaces) bugs.c:71:9: sparse: expected void const [noderef] __percpu *__vpp_verify bugs.c:71:9: sparse: got unsigned long long * The reason is that x86_spec_ctrl_current which is a per CPU variable is exported with EXPORT_SYMBOL_GPL(). Use EXPORT_PER_CPU_SYMBOL_GPL() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240304005104.732288812@linutronix.de --- arch/x86/kernel/cpu/bugs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 48d049c..0767ab6 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -56,7 +56,7 @@ EXPORT_SYMBOL_GPL(x86_spec_ctrl_base); /* The current value of the SPEC_CTRL MSR with task-specific bits set */ DEFINE_PER_CPU(u64, x86_spec_ctrl_current); -EXPORT_SYMBOL_GPL(x86_spec_ctrl_current); +EXPORT_PER_CPU_SYMBOL_GPL(x86_spec_ctrl_current); u64 x86_pred_cmd __ro_after_init = PRED_CMD_IBPB; EXPORT_SYMBOL_GPL(x86_pred_cmd);