Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2129495rdg; Sun, 13 Aug 2023 10:28:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0jVBz4V1w7bgRUAlw5PREgIvud0MSWDhoQnqRE17UhxJRPr3N+RCarCcnJN5XWW/JpHoQ X-Received: by 2002:a05:6a00:804:b0:675:ef91:7922 with SMTP id m4-20020a056a00080400b00675ef917922mr9335528pfk.4.1691947705860; Sun, 13 Aug 2023 10:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691947705; cv=none; d=google.com; s=arc-20160816; b=Yf0wnKHym712UfU4+F1wfMJehADtX7x9cV5ys4AhKrjjPEjYSn+jXDTkXSACdALpE6 JhCoX+4VRLB/5ZmklL38s2xQ5k+qECXIC+8TSP7wjT0q3jQI+/uIn3bPBpK8yL6ty8T4 W9aRpMXsp0w/YkwCrvS0apEtYmWIw00xEuTSuiCWlspS1CLxPBnz7gVPF/ZWqEba5UGW iU57h8kaKSltDQvEb5TGvjvbEQksdMGj1M7c9zu2rPnc5Js+HwTCOEI3EbWZoTEMfbMj Vfhea9EjlK0qfVfF1yNZM06UzudTx0Pf78/QGywQ7HInJidthJN7XDs+/k/rT0YdJDb8 7fdg== 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:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=XFv/WGD4ae9CWzDQzX25v0TJdEoRSiky32t7iTcaZU4=; fh=2tuUsYo3AHL3ni72DevXvfbsTeDgdXSgM4MfnGax/4A=; b=q0yQCdEwNwEEc9sbHdAV26KfB4dOzpeYbqf9XhPIZxzIXqpq+mRNPzlamdcEy+zBa/ XYwoaxMwpxKWwipIMxaLpJ3oQnY588te5yz/HjdBMkuOVr3o+DYj5c0GIzHMlqBFz6kh BolL66a+KzVhtU9/2M3gcUryjnR3chrIb5YNv3/wfasc5aj49a5O+xQ9KbvpFxd8rHPU 3N91bS3pLWw+lJfjsJOiJUlHr2admt/W4KN81kRO8SQZJvtMmjIRhH3BcOg4gl497/Er WnZJ2MwOixZADDuPf4qZMJho98kXd1LvZO1vIgK8L7nOhsiMZJsu/bw9nJaUg9o1+a1U tEbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wuVKSAz3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VsViDXB6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca21-20020a056a00419500b006874b10adebsi6717631pfb.181.2023.08.13.10.28.13; Sun, 13 Aug 2023 10:28:25 -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=wuVKSAz3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VsViDXB6; 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 S231486AbjHMR0k (ORCPT + 99 others); Sun, 13 Aug 2023 13:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbjHMR0c (ORCPT ); Sun, 13 Aug 2023 13:26:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD8F510FD; Sun, 13 Aug 2023 10:26:34 -0700 (PDT) Date: Sun, 13 Aug 2023 17:26:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691947593; 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=XFv/WGD4ae9CWzDQzX25v0TJdEoRSiky32t7iTcaZU4=; b=wuVKSAz39zBSj3vWKc0OWVv9NMyB79BmZxnbP6/c1YbnvkCR/oL1PnhfWhzXlZ5D4chmql 9W9ywVjwVvbvKHlQ3dCCL1ZbWLm9RjKOrj7hRHWbBalJ8Vu+FwWZaCvWVPA85l3kXBvyis VXR6nowJUUqK79bJwup1jlIfyyb+P9UoBhWLIm+mkeVO9VityCrKuMXTPClYnNRlrppFDJ ENNzjJnn0Wv+2qCAIMRHBZO/u9mnFLt7ce+nueufdgyKDXH0QwQRol/nP2E3dqbZ2JXjJF KegrsnO5qZtcdz8BBoKO9RQiw4Icj8XrhOnxWZYYE5Fs4BMDoV+sOuFo2nGCcg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691947593; 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=XFv/WGD4ae9CWzDQzX25v0TJdEoRSiky32t7iTcaZU4=; b=VsViDXB6L/79Lb8zaDoeQzKEyDPK03VienIgenYX9KDUHVXG5942XWiFBJmNsWac4dhIBg wL8EW9fkuURe3IAQ== 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/microcode] x86/microcode: Make reload_early_microcode() static Cc: Thomas Gleixner , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230812195727.834943153@linutronix.de> References: <20230812195727.834943153@linutronix.de> MIME-Version: 1.0 Message-ID: <169194759276.27769.3507811104748487881.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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 The following commit has been merged into the x86/microcode branch of tip: Commit-ID: 18648dbd3338b75e7b2895d725ee3a7187d6e3a3 Gitweb: https://git.kernel.org/tip/18648dbd3338b75e7b2895d725ee3a7187d6e3a3 Author: Thomas Gleixner AuthorDate: Sat, 12 Aug 2023 21:58:44 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Sun, 13 Aug 2023 18:42:55 +02:00 x86/microcode: Make reload_early_microcode() static fe055896c040 ("x86/microcode: Merge the early microcode loader") left this needlessly public. Git archaeology provided by Borislav. Signed-off-by: Thomas Gleixner Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230812195727.834943153@linutronix.de --- arch/x86/include/asm/microcode.h | 2 -- arch/x86/kernel/cpu/microcode/core.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h index 9c713b7..166a633 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h @@ -128,13 +128,11 @@ static inline unsigned int x86_cpuid_family(void) #ifdef CONFIG_MICROCODE extern void __init load_ucode_bsp(void); extern void load_ucode_ap(void); -void reload_early_microcode(unsigned int cpu); extern bool initrd_gone; void microcode_bsp_resume(void); #else static inline void __init load_ucode_bsp(void) { } static inline void load_ucode_ap(void) { } -static inline void reload_early_microcode(unsigned int cpu) { } static inline void microcode_bsp_resume(void) { } #endif diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 73a3c22..75c5bc7 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -293,7 +293,7 @@ struct cpio_data find_microcode_in_initrd(const char *path, bool use_pa) #endif } -void reload_early_microcode(unsigned int cpu) +static void reload_early_microcode(unsigned int cpu) { int vendor, family;