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


Groups > linux.kernel > #1251553

[PATCH 5/6] x86/microcode/intel: Move ifdef DEBUG inside the function

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject [PATCH 5/6] x86/microcode/intel: Move ifdef DEBUG inside the function
Date 2015-10-20 12:00 +0200
Message-ID <qlBS3-8v7-23@gated-at.bofh.it> (permalink)
References <qlBS2-8v7-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Borislav Petkov <bp@suse.de>

... and save us the stub.

Signed-off-by: Borislav Petkov <bp@suse.de>
---
 arch/x86/kernel/cpu/microcode/intel.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c
index 3f325586965e..ce47402eb2f9 100644
--- a/arch/x86/kernel/cpu/microcode/intel.c
+++ b/arch/x86/kernel/cpu/microcode/intel.c
@@ -389,9 +389,9 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci)
 	return 0;
 }
 
-#ifdef DEBUG
 static void show_saved_mc(void)
 {
+#ifdef DEBUG
 	int i, j;
 	unsigned int sig, pf, rev, total_size, data_size, date;
 	struct ucode_cpu_info uci;
@@ -449,12 +449,8 @@ static void show_saved_mc(void)
 		}
 
 	}
-}
-#else
-static inline void show_saved_mc(void)
-{
-}
 #endif
+}
 
 #ifdef CONFIG_HOTPLUG_CPU
 static DEFINE_MUTEX(x86_cpu_microcode_mutex);
-- 
2.3.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] x86/microcode: Merge the early loader Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
  [PATCH 1/6] x86/microcode: Unmodularize driver Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
    [tip:ras/core] x86/microcode: Unmodularize the microcode driver tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-10-21 12:10 +0200
  [PATCH 6/6] MAINTAINERS: Unify microcode driver section Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
    [tip:ras/core] MAINTAINERS: Unify the microcode driver section tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-10-21 12:20 +0200
  [PATCH 5/6] x86/microcode/intel: Move ifdef DEBUG inside the function Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
    [tip:ras/core] x86/microcode/intel:   Move #ifdef DEBUG inside the function tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-10-21 12:20 +0200
  [PATCH 3/6] x86/microcode: Remove modularization leftovers Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
    [tip:ras/core] x86/microcode: Remove modularization leftovers tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-10-21 12:10 +0200
  [PATCH 4/6] x86/microcode/amd: Remove maintainers from comments Borislav Petkov <bp@alien8.de> - 2015-10-20 12:00 +0200
    [tip:ras/core] x86/microcode/amd:   Remove maintainers from comments tip-bot for Borislav Petkov <tipbot@zytor.com> - 2015-10-21 12:10 +0200

csiph-web