Skip to contentSkip to conversation

ATM: he: fix section mismatch

PATCH In review [email protected] 2 participants 2 messages Sep 20, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 ATM: he: fix section mismatch

From: Randy Dunlap <[email protected]>

WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x218a) and 'he_service_tbrq'

---

 drivers/atm/he.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atm/he.c renamed from drivers/atm/he.c~atm-he-fix-section-mismatch +1 -1
diff -puN drivers/atm/he.c~atm-he-fix-section-mismatch drivers/atm/he.c
@@ -785,7 +785,7 @@ he_init_cs_block_rcm(struct he_dev *he_d
 	return 0;
 }
 
-static int __init
+static int __devinit
 he_init_group(struct he_dev *he_dev, int group)
 {
 	int i;

_

#1 lore raw

drivers/atm/he.c he_init_cs_block_rcm(struct he_dev *he_d · line 789

Quoted 5 lines

WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x218a) and 'he_service_tbrq'

drivers/atm/he.c renamed from drivers/atm/he.c~atm-he-fix-section-mismatch +1 -1
-static int __init
+static int __devinit
 he_init_group(struct he_dev *he_dev, int group)

There are a ton of other __init functions (he_init_irq(), he_init_tx_lbfp(), etc.) called from the __devinit function he_start() in this driver. So I think this patch is insufficient -- does it even really fix the warning?? (I think -funit-at-a-time hides the warning with this patch on x86-64)

Anyway, I sent a more comprehensive fix to Chas who forwarded it to DaveM already.

- R.