提交 dc85dec6 编写于 作者: P Peter Chubb 提交者: Jeff Garzik

[PATCH] 'mdio_bus_exit' in discarded section .text.exit

When building with  CONFIG_PHYLIB=y on Itanium, I see:
 `mdio_bus_exit' referenced in section `.init.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o

I believe that mdio_bus_exit should not be declared __exit, because it is
referencesd from __init sections in, say, phy_init().
Signed-off-by: NPeter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 9d8cc1b6
...@@ -170,7 +170,7 @@ int __init mdio_bus_init(void) ...@@ -170,7 +170,7 @@ int __init mdio_bus_init(void)
return bus_register(&mdio_bus_type); return bus_register(&mdio_bus_type);
} }
void __exit mdio_bus_exit(void) void mdio_bus_exit(void)
{ {
bus_unregister(&mdio_bus_type); bus_unregister(&mdio_bus_type);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册