From patchwork Wed Aug 9 15:34:20 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: 133394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2982710vqr; Wed, 9 Aug 2023 11:07:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGihiA/cq3CYgHubgI4Q1AvCDg+0gj3n+gNEjVlJxjKAhAGFXdHU4prv8eYe8Qk9go/2mdv X-Received: by 2002:a2e:909a:0:b0:2b9:3cb3:2592 with SMTP id l26-20020a2e909a000000b002b93cb32592mr2264637ljg.10.1691604420471; Wed, 09 Aug 2023 11:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691604420; cv=none; d=google.com; s=arc-20160816; b=XIBaAmdADgYIU0ZOTIDe0MzxsG3NlT6u+4EU97x9Wq6z+ISmF7+ZWcNIx6d+3gai/9 Uj37LFeVh3YAci/n8U0pgckresf6scNQ0lLRdKHUPdUEaY7kZfYi+vR+QFL4lJ+NwEoa L9WtcxNnJVD1ame74bbMugKc4YgezY+W7IJKc6elfuWKqMfF/FXIDbVLbgc5Ljglo3G8 nJgo9sJanv6/9TgAYJU944CQLeMqBLABKhVC7SQOELZ3btoRyo48Ojpb4yMwZavufLmw uV2qS8gIULCPWFzYLY+7v/bkoHa3uAS7W0gYbhHX8p3Gn41Y37hHIQ+17CDMP9Vzzd/j OIMg== 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=VcNnGWdq/puVgwH1KbQICcaPUOowJRxhgq4m+J7Jzq4=; fh=xeBNGOuZM5vy4okdFvBNsMTGHQ6tdBlFPaNKCUScG5A=; b=KZsbfGdP2R3Jn6nP2OZHwMm0Q6DfAgaw1gQBI5+Chvh0t0n9PPQx2zKRzIUso40G8V cBRUvUYOGuxLAsv+Mu7YpNdAG4MEAZcdy/eQbCWA4dcWr/VE2U1XUpd2HW2Tp4TCeqKl K2pzq5OEcqzm27gRmDTp/2aBH/F+IE8zWpZwLJ71/uo2dy4ToNbBlEeOc3IZTgmKKo8K u8wM/DEeVFnyrNqkU/AtKA0j9eIkqKKHntjdcBy8y1deiU8eILcic7COJ8PBwOXdqUqC vcBUW0Rx2h81QqlKLAY/EmcZ8AMRXHxsKDLEaNdH5kf18iaHUABYzFtGa5NGnJGuTYFD axFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=py6rG6F+; dkim=neutral (no key) header.i=@linutronix.de; 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 i6-20020a1709063c4600b0099cd74ad42fsi4827949ejg.106.2023.08.09.11.06.17; Wed, 09 Aug 2023 11:07:00 -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=py6rG6F+; dkim=neutral (no key) header.i=@linutronix.de; 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 S234493AbjHIPfL (ORCPT + 99 others); Wed, 9 Aug 2023 11:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbjHIPeW (ORCPT ); Wed, 9 Aug 2023 11:34:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D01D1FFE; Wed, 9 Aug 2023 08:34:22 -0700 (PDT) Date: Wed, 09 Aug 2023 15:34:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691595260; 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=VcNnGWdq/puVgwH1KbQICcaPUOowJRxhgq4m+J7Jzq4=; b=py6rG6F+PFYwEMGM/+h1va9W6L/unwCPd7N5I2crXClOvfR+mjO+VTq26oKQvvi7aVz2+E GsH7IdMrCIqHcoN/Xja0AEUHZC5kuDLpe92BiurpDnt+uFOxFgDW+7p+XTG5UVbMkW0xvB Rrnj0uNXxIHOZd8JNF5oVKi8FwExsNdlGloluTK+bAACNl21g9iWW4SAsQuW0VQShutFZp tfk4qq7jbt4HkejgMi15WXUaHNZc9g+uLT4O96HDLa9Ccw9b4pxPDpeaIPqN+sOKCV2u9b myva2eaMgqJddOicxSCeBCR5V5/C6hwLiKLL9VH2/5pf7m+zyADR6vXKgbAJLA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691595260; 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=VcNnGWdq/puVgwH1KbQICcaPUOowJRxhgq4m+J7Jzq4=; b=BGjFTEtdyrKWtR6uV7Kqax5w3uCVuNe/DAz1/0XmFssA/IK5LWypfeQuJrvxb8PeTypWOC mrmq527OmH6ij5Ag== 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)" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169159526026.27769.16402300626192617002.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: 1773775796650111702 The following commit has been merged into the x86/apic branch of tip: Commit-ID: e9c4aa6e0add4c612296041e63342371fb1c7bfe Gitweb: https://git.kernel.org/tip/e9c4aa6e0add4c612296041e63342371fb1c7bfe Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:39 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 08:10:10 -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) --- 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))