[PATCH] x86, microcode support: fix build error

From: Ingo Molnar
Date: Tue Jul 29 2008 - 03:42:17 EST


fix:

arch/x86/kernel/microcode.c:412: error: static declaration of âmicrocode_initâ follows non-static declaration
include/asm/microcode.h:1: error: previous declaration of âmicrocode_initâ was here
arch/x86/kernel/microcode.c:454: error: static declaration of âmicrocode_exitâ follows non-static declaration
include/asm/microcode.h:2: error: previous declaration of âmicrocode_exitâ was here

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/kernel/microcode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/microcode.c b/arch/x86/kernel/microcode.c
index 1e42e79..9a88184 100644
--- a/arch/x86/kernel/microcode.c
+++ b/arch/x86/kernel/microcode.c
@@ -415,7 +415,7 @@ static struct notifier_block __refdata mc_cpu_notifier = {
.notifier_call = mc_cpu_callback,
};

-static int microcode_init(void *opaque, struct module *module)
+int microcode_init(void *opaque, struct module *module)
{
struct microcode_ops *ops = (struct microcode_ops *)opaque;
int error;
@@ -457,7 +457,7 @@ static int microcode_init(void *opaque, struct module *module)
}
EXPORT_SYMBOL_GPL(microcode_init);

-static void __exit microcode_exit (void)
+void __exit microcode_exit (void)
{
microcode_dev_exit();

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