Module: xenomai-3
Branch: next
Commit: 03a3c26475e9d2045ea2432254d610298cba9a6f
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=03a3c26475e9d2045ea2432254d610298cba9a6f

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed Jul  9 17:50:30 2014 +0200

cobalt/x86: Fix section mismatch warning for mach_x86_c1e_disable

mach_x86_c1e_disable is called from non-__init function mach_x86_init,
thus can't be tagged as __init. mach_x86_init can't be converted as it
is referenced by the persistent xnarch_machdesc structure.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/arch/x86/c1e.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/arch/x86/c1e.c b/kernel/cobalt/arch/x86/c1e.c
index 9aa4c66..9bd4e92 100644
--- a/kernel/cobalt/arch/x86/c1e.c
+++ b/kernel/cobalt/arch/x86/c1e.c
@@ -56,7 +56,7 @@ static void c1e_promotion_disable(void *dummy)
        wrmsrl(MSR_IA32_POWER_CTL, msr_bits);
 }
 
-void __init mach_x86_c1e_disable(void)
+void mach_x86_c1e_disable(void)
 {
        const struct x86_cpu_id *id;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to