ATM: he: fix section mismatch
Subsystems (3)
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
@@ -785,7 +785,7 @@ he_init_cs_block_rcm(struct he_dev *he_dreturn 0 ; } -static int __init +static int __devinit he_init_group (struct he_dev *he_dev,int group) {int i;
_
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 offset0x218a) 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.