geode: fix modular build

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, June 12, 2008 - 1:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3703f3...
Commit:     3703f39965a197ebd91743fc38d0f640606b8da3
Parent:     5e70b7f3c24468bb1635b295945edb48ecd9656a
Author:     Ingo Molnar <mingo@elte.hu>
AuthorDate: Wed Jun 4 18:13:37 2008 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Thu Jun 12 21:25:51 2008 +0200

    geode: fix modular build
    
    -tip testing found this build bug:
    
     MODPOST 331 modules
     ERROR: "geode_mfgpt_toggle_event" [drivers/watchdog/geodewdt.ko] undefined!
     ERROR: "geode_mfgpt_alloc_timer" [drivers/watchdog/geodewdt.ko] undefined!
     make[1]: *** [__modpost] Error 1
     make: *** [modules] Error 2
    
    with this config:
    
      http://redhat.com/~mingo/misc/config-Wed_Jun__4_18_01_59_CEST_2008.bad
    
    export those symbols.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/mfgpt_32.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/mfgpt_32.c b/arch/x86/kernel/mfgpt_32.c
index 3cad17f..07c0f82 100644
--- a/arch/x86/kernel/mfgpt_32.c
+++ b/arch/x86/kernel/mfgpt_32.c
@@ -155,6 +155,7 @@ int geode_mfgpt_toggle_event(int timer, int cmp, int event, int enable)
 	wrmsr(msr, value, dummy);
 	return 0;
 }
+EXPORT_SYMBOL_GPL(geode_mfgpt_toggle_event);
 
 int geode_mfgpt_set_irq(int timer, int cmp, int irq, int enable)
 {
@@ -222,6 +223,7 @@ int geode_mfgpt_alloc_timer(int timer, int domain)
 	/* No timers available - too bad */
 	return -1;
 }
+EXPORT_SYMBOL_GPL(geode_mfgpt_alloc_timer);
 
 
 #ifdef CONFIG_GEODE_MFGPT_TIMER
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
geode: fix modular build, Linux Kernel Mailing ..., (Thu Jun 12, 1:59 pm)