From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171AbdFZOCN (ORCPT ); Mon, 26 Jun 2017 10:02:13 -0400 Received: from terminus.zytor.com ([65.50.211.136]:57553 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbdFZOCF (ORCPT ); Mon, 26 Jun 2017 10:02:05 -0400 Date: Mon, 26 Jun 2017 07:00:52 -0700 From: tip-bot for Colin Ian King Message-ID: Cc: colin.king@canonical.com, bp@suse.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, colin.king@canonical.com, bp@suse.de, hpa@zytor.com In-Reply-To: <20170622095736.11937-1-colin.king@canonical.com> References: <20170622095736.11937-1-colin.king@canonical.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/microcode] x86/microcode: Make a couple of symbols static Git-Commit-ID: d7f7dc7b88ed7e98f6e503f821b60ace206a35bc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d7f7dc7b88ed7e98f6e503f821b60ace206a35bc Gitweb: http://git.kernel.org/tip/d7f7dc7b88ed7e98f6e503f821b60ace206a35bc Author: Colin Ian King AuthorDate: Mon, 26 Jun 2017 14:35:33 +0200 Committer: Thomas Gleixner CommitDate: Mon, 26 Jun 2017 15:57:37 +0200 x86/microcode: Make a couple of symbols static The helper function __load_ucode_amd() and pointer intel_ucode_patch do not need to be in global scope, so make them static. Fixes those sparse warnings: "symbol '__load_ucode_amd' was not declared. Should it be static?" "symbol 'intel_ucode_patch' was not declared. Should it be static?" Signed-off-by: Colin Ian King Signed-off-by: Borislav Petkov Signed-off-by: Thomas Gleixner Link: http://lkml.kernel.org/r/20170622095736.11937-1-colin.king@canonical.com --- arch/x86/kernel/cpu/microcode/amd.c | 2 +- arch/x86/kernel/cpu/microcode/intel.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index e9f4d76..21b1857 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -251,7 +251,7 @@ static bool get_builtin_microcode(struct cpio_data *cp, unsigned int family) #endif } -void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret) +static void __load_ucode_amd(unsigned int cpuid_1_eax, struct cpio_data *ret) { struct ucode_cpu_info *uci; struct cpio_data cp; diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index d525a0b..59edbe9 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -42,7 +42,7 @@ static const char ucode_path[] = "kernel/x86/microcode/GenuineIntel.bin"; /* Current microcode patch used in early patching on the APs. */ -struct microcode_intel *intel_ucode_patch; +static struct microcode_intel *intel_ucode_patch; static inline bool cpu_signatures_match(unsigned int s1, unsigned int p1, unsigned int s2, unsigned int p2)