* [PATCH][V2] x86/microcode: make a couple of symbols static
@ 2017-06-22 9:57 Colin King
2017-06-23 8:27 ` Borislav Petkov
2017-06-26 14:00 ` [tip:x86/microcode] x86/microcode: Make " tip-bot for Colin Ian King
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-06-22 9:57 UTC (permalink / raw)
To: Borislav Petkov, Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The helper function __load_ucode_amd and pointer intel_ucode_patch
do not need to be in global scope, so make them static.
Cleans up 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 <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 e9f4d762aa5b..21b185793c80 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 d525a0bd7d28..59edbe9d4ccb 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)
--
2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][V2] x86/microcode: make a couple of symbols static
2017-06-22 9:57 [PATCH][V2] x86/microcode: make a couple of symbols static Colin King
@ 2017-06-23 8:27 ` Borislav Petkov
2017-06-26 14:00 ` [tip:x86/microcode] x86/microcode: Make " tip-bot for Colin Ian King
1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-06-23 8:27 UTC (permalink / raw)
To: Colin King
Cc: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86,
kernel-janitors, linux-kernel
On Thu, Jun 22, 2017 at 10:57:36AM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The helper function __load_ucode_amd and pointer intel_ucode_patch
> do not need to be in global scope, so make them static.
>
> Cleans up 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 <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(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:x86/microcode] x86/microcode: Make a couple of symbols static
2017-06-22 9:57 [PATCH][V2] x86/microcode: make a couple of symbols static Colin King
2017-06-23 8:27 ` Borislav Petkov
@ 2017-06-26 14:00 ` tip-bot for Colin Ian King
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Colin Ian King @ 2017-06-26 14:00 UTC (permalink / raw)
To: linux-tip-commits; +Cc: colin.king, bp, hpa, mingo, linux-kernel, tglx
Commit-ID: d7f7dc7b88ed7e98f6e503f821b60ace206a35bc
Gitweb: http://git.kernel.org/tip/d7f7dc7b88ed7e98f6e503f821b60ace206a35bc
Author: Colin Ian King <colin.king@canonical.com>
AuthorDate: Mon, 26 Jun 2017 14:35:33 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
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 <colin.king@canonical.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-26 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 9:57 [PATCH][V2] x86/microcode: make a couple of symbols static Colin King
2017-06-23 8:27 ` Borislav Petkov
2017-06-26 14:00 ` [tip:x86/microcode] x86/microcode: Make " tip-bot for Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®