Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1672435 > unrolled thread

[PATCH] x86/microcode/intel: make pointer intel_ucode_patch static

Started byColin King <colin.king@canonical.com>
First post2017-06-22 11:00 +0200
Last post2017-06-22 11:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86/microcode/intel: make pointer intel_ucode_patch static Colin King <colin.king@canonical.com> - 2017-06-22 11:00 +0200
    Re: [PATCH] x86/microcode/intel: make pointer intel_ucode_patch  static Borislav Petkov <bp@alien8.de> - 2017-06-22 11:10 +0200

#1672435 — [PATCH] x86/microcode/intel: make pointer intel_ucode_patch static

FromColin King <colin.king@canonical.com>
Date2017-06-22 11:00 +0200
Subject[PATCH] x86/microcode/intel: make pointer intel_ucode_patch static
Message-ID<tV682-2hR-19@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

The pointer intel_ucode_patch does not need to be in global scope,
so make it static.

Cleans up sparse warning:
"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/intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

[toc] | [next] | [standalone]


#1672449 — Re: [PATCH] x86/microcode/intel: make pointer intel_ucode_patch static

FromBorislav Petkov <bp@alien8.de>
Date2017-06-22 11:10 +0200
SubjectRe: [PATCH] x86/microcode/intel: make pointer intel_ucode_patch static
Message-ID<tV6hI-2Cj-33@gated-at.bofh.it>
In reply to#1672435
On Thu, Jun 22, 2017 at 09:49:40AM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The pointer intel_ucode_patch does not need to be in global scope,
> so make it static.
> 
> Cleans up sparse warning:
> "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/intel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)
> -- 

Acked-by: Borislav Petkov <bp@suse.de>

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web