Skip to contentSkip to conversation

ucc_geth: really fix section mismatch

PATCH In review Anton Vorontsov 2 participants 2 messages Dec 17, 2007

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

PATCH 1/1 ucc_geth: really fix section mismatch

Commit ed7e63a51d46e835422d89c687b8a3e419a4212a has tried to fix section mismatch:

WARNING: vmlinux.o(.init.text+0x17278): Section mismatch: reference to .exit.text:uec_mdio_exit (between 'ucc_geth_init' and 'uec_mdio_init')

But that mismatch still happens.

This patch actually fixing section mismatch by removing __exit from the header file.

---
 drivers/net/ucc_geth_mii.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ucc_geth_mii.h +1 -1
index d834370..1e45b20 100644
@@ -96,5 +96,5 @@ enum enet_tbi_mii_reg {
 int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum);
 int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value);
 int __init uec_mdio_init(void);
-void __exit uec_mdio_exit(void);
+void uec_mdio_exit(void);
 #endif				/* __UEC_MII_H */
Signature · 1 line
1.5.2.2
#1 lore raw
Quoted 21 lines · Anton Vorontsov

Commit ed7e63a51d46e835422d89c687b8a3e419a4212a has tried to fix section mismatch:

WARNING: vmlinux.o(.init.text+0x17278): Section mismatch: reference to .exit.text:uec_mdio_exit (between 'ucc_geth_init' and 'uec_mdio_init')

But that mismatch still happens.

This patch actually fixing section mismatch by removing __exit from the header file.

---
 drivers/net/ucc_geth_mii.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ucc_geth_mii.h +0 -0
index d834370..1e45b20 100644

drivers/net/ucc_geth_mii.h enum enet_tbi_mii_reg { · line 99

Quoted 4 lines
drivers/net/ucc_geth_mii.h +0 -1
@@ -96,5 +96,5 @@ enum enet_tbi_mii_reg {
 int uec_mdio_read(struct mii_bus *bus, int mii_id, int regnum);
 int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value);
 int __init uec_mdio_init(void);
-void __exit uec_mdio_exit(void);

applied #upstream-fixes