From patchwork Wed Aug 9 19:12:30 2023 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: 133520 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:9d8d:b0:139:fa0d:b2d with SMTP id d13csp146219rwo; Wed, 9 Aug 2023 14:10:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFW9Q3kkylkxH6UFbh1/92onj8J2MKbkI97CluwaWBdpuvY/+9yfMxe16zd1uViUxbjJR9v X-Received: by 2002:a17:903:2282:b0:1b8:1b79:a78c with SMTP id b2-20020a170903228200b001b81b79a78cmr325888plh.44.1691615447922; Wed, 09 Aug 2023 14:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691615447; cv=none; d=google.com; s=arc-20160816; b=iQJnkn2Xw1brmf5b7aqmciIkwctSuDP5E+uwUuuCksIEeUtIMvCr12BURBM6ld86F/ o/w0s8TahHtcZ/n2yYhjKBkkbL5lZdFMHxk0muvzlEGuKj3QWTs6Supr5kPmzx8Css+O mx9Q38ZomAjRL2jKw0f4n2BttVonGQqukI0U3Gigg/G3kbHpR+EYsmd1Zu9WjgcieJNC eAiGq5Y2oYeN4gswGIhPMdwHymSG/WRSQ/dW4getfXya2n4/T9ZmI73dSS+KHJTtrnh4 y515XjNq8Pz7omA0NtAdRMXrSG42IQSKwGmBmxtVlUudCSh61TGz8mwVf5o5L66vIifH OAUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=1cUqiEDAgeCw92CMVlQ/zNT4kJTvWs/WU4VOY5Qybpg=; fh=jBwjuriIPWA1lnCf5oMMiNAPpgGE0iGPmBzZMsd85oQ=; b=exQfi2SEl0kZiwYc+WKiYEmid4wQxrhRONHIXsbxFjPNGyU4QlVRstfbL8muEeJkcR 507hgBTYn0oITSmGOZcd8NgsM/P3Q0WC6WSvzQ93huK5CNeZYihq4mS8QMSKT1/Q8B8o dP3Wg2XsVfNWrjc89egbmOndT7a5IFm/N7KRjB/PY0uZAWLaTo43kJl6ugKO4Wq2iCze DPe8V/AADtGHmrk101fjKFNHjczBiJE19OGOxoQo9HIiHHLi4epKHmNsP5vqI11DnYcq x4D+KwGyJgi9AggdIm1NEtwUFokVIWnMEqEF74Yo+opmgCO1FOaFhoxE2XrRJDZWtN7b /mcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YfatK3kK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=DAz4BsgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903121000b001b9da7af2c0si10491311plh.214.2023.08.09.14.10.34; Wed, 09 Aug 2023 14:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YfatK3kK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=DAz4BsgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233139AbjHITOG (ORCPT + 99 others); Wed, 9 Aug 2023 15:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233251AbjHITNf (ORCPT ); Wed, 9 Aug 2023 15:13:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5210C30C4; Wed, 9 Aug 2023 12:12:49 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608350; 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; bh=1cUqiEDAgeCw92CMVlQ/zNT4kJTvWs/WU4VOY5Qybpg=; b=YfatK3kKRrpGsliGr1a9CJ4ei8G6b2MMHSjdNklPImzqyUud2y16Qv4qqYWvXV+PwU1HUZ ZqC///RlFqE8eXM9C3TNylV8MjqsWcd+Xm0vxCa+PGc+xItcQg4T7AWQiID70kH5/uDMae 2eJQKV+IFCeBEENVDlXR/FHh8Rx9a0GhPDLO1/zr5ovA9nzepEzOSCE0QioAn8pl0TrLBQ 4N+uIrXZQ191jIuiQHiV0OtEp9pMY5wuvpEKBvJWQOQqzdGYOk3Z+lohSAVoP5qJpZcZ/C kxSxJhgxGRBFxU9z8Vj4RkpjHEVymfKz87eq1X4w4rRhsPVHAE1UQC0wqbNFcA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608350; 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; bh=1cUqiEDAgeCw92CMVlQ/zNT4kJTvWs/WU4VOY5Qybpg=; b=DAz4BsgPCESSlx0Vrl1e8HKmQ9FDUCzweBxW5qv82sJSh0r36DaweQvlAClUh2EhSHbsA0 OvNtXgY8ObOasiBA== 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/apic] x86/cpu: Make identify_boot_cpu() static Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160835036.27769.1119660617648651890.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773775796650111702 X-GMAIL-MSGID: 1773787359812966870 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 3ba3fdfe2c3f28b9976f0c07eb7736080cb7d4a9 Gitweb: https://git.kernel.org/tip/3ba3fdfe2c3f28b9976f0c07eb7736080cb7d4a9 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:39 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:15 -07:00 x86/cpu: Make identify_boot_cpu() static It's not longer used outside the source file. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/include/asm/processor.h | 1 - arch/x86/kernel/cpu/common.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index d46300e..923ca0a 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -190,7 +190,6 @@ static inline unsigned long long l1tf_pfn_limit(void) } extern void early_cpu_init(void); -extern void identify_boot_cpu(void); extern void identify_secondary_cpu(struct cpuinfo_x86 *); extern void print_cpu_info(struct cpuinfo_x86 *); void print_cpu_msr(struct cpuinfo_x86 *); diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 0ba1067..b156187 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1937,7 +1937,7 @@ void enable_sep_cpu(void) } #endif -void __init identify_boot_cpu(void) +static __init void identify_boot_cpu(void) { identify_cpu(&boot_cpu_data); if (HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT))