[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1257409037-29916-1-git-send-email-u.kleine-koenig@pengutronix.de>
Date: Thu, 5 Nov 2009 09:17:17 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: mst@...hat.com
Cc: rusty@...tcorp.com.au, Sam Ravnborg <sam@...nborg.org>,
"David S. Miller" <davem@...emloft.net>,
Alex Williamson <alex.williamson@...com>,
Mark McLoughlin <markmc@...hat.com>, netdev@...r.kernel.org
Subject: [PATCH] virtio_net: rename driver struct to please modpost
Commit
3d1285b (move virtnet_remove to .devexit.text)
introduced the first reference to __devexit in struct virtio_driver
virtio_net which upset modpost ("Section mismatch in reference from the
variable virtio_net to the function .devexit.text:virtnet_remove()").
Fix this by renaming virtio_net to virtio_net_driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Reported-by: Michael S. Tsirkin <mst@...hat.com>
Blame-taken-by: Rusty Russell <rusty@...tcorp.com.au>
Cc: Sam Ravnborg <sam@...nborg.org>
Cc: David S. Miller <davem@...emloft.net>
Cc: Alex Williamson <alex.williamson@...com>
Cc: Mark McLoughlin <markmc@...hat.com>
Cc: netdev@...r.kernel.org
---
Hello,
@Rusty: IMHO there's no need to apologize. The driver was enhanced by
3d1285b and I consider it OK not to notice the (false) section warning.
(But if you think it was you who took my first patch, then you forgot to
add you S-o-b which is a worse trespass :-)
Best regards
Uwe
drivers/net/virtio_net.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 05630f2..b9e002f 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -998,7 +998,7 @@ static unsigned int features[] = {
VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN,
};
-static struct virtio_driver virtio_net = {
+static struct virtio_driver virtio_net_driver = {
.feature_table = features,
.feature_table_size = ARRAY_SIZE(features),
.driver.name = KBUILD_MODNAME,
@@ -1011,12 +1011,12 @@ static struct virtio_driver virtio_net = {
static int __init init(void)
{
- return register_virtio_driver(&virtio_net);
+ return register_virtio_driver(&virtio_net_driver);
}
static void __exit fini(void)
{
- unregister_virtio_driver(&virtio_net);
+ unregister_virtio_driver(&virtio_net_driver);
}
module_init(init);
module_exit(fini);
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists