Skip to contentSkip to conversation

powerpc/QE: qe_reset should be __init

PATCH Applied Anton Vorontsov 2 participants 2 messages Jun 11, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/QE: qe_reset should be __init

This patch fixes following section mismatch:

WARNING: arch/powerpc/sysdev/built-in.o(.text+0x11d8): Section mismatch in reference from the function qe_reset() to the function .init.text:cpm_muram_init()

---
 arch/powerpc/sysdev/qe_lib/qe.c |    2 +-
 include/asm-powerpc/qe.h        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/sysdev/qe_lib/qe.c +1 -1
index 28e05df..9e82d7e 100644
@@ -87,7 +87,7 @@ phys_addr_t get_qe_base(void)
 
 EXPORT_SYMBOL(get_qe_base);
 
-void qe_reset(void)
+void __init qe_reset(void)
 {
 	if (qe_immr == NULL)
 		qe_immr = ioremap(get_qe_base(), QE_IMMAP_SIZE);
include/asm-powerpc/qe.h +1 -1
index 80807fd..1355e72 100644
@@ -84,7 +84,7 @@ static inline bool qe_clock_is_brg(enum qe_clock clk)
 extern spinlock_t cmxgcr_lock;
 
 /* Export QE common operations */
-extern void qe_reset(void);
+extern void __init qe_reset(void);
 
 /* QE PIO */
 #define QE_PIO_PINS 32
Signature · 1 line
1.5.5.4
Applied
#1 lore raw
Quoted 11 lines · Anton Vorontsov

This patch fixes following section mismatch:

WARNING: arch/powerpc/sysdev/built-in.o(.text+0x11d8): Section mismatch in reference from the function qe_reset() to the function .init.text:cpm_muram_init()

---

arch/powerpc/sysdev/qe_lib/qe.c |    2 +-
include/asm-powerpc/qe.h        |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

applied.

- k