Signed-off-by: Stephen Hemminger --- a/drivers/net/virtio_net.c 2012-10-26 12:27:23.911918635 -0700 +++ b/drivers/net/virtio_net.c 2012-10-26 12:52:28.632806729 -0700 @@ -1274,12 +1274,12 @@ static int virtnet_restore(struct virtio } #endif -static struct virtio_device_id id_table[] = { +static const struct virtio_device_id id_table[] = { { VIRTIO_ID_NET, VIRTIO_DEV_ANY_ID }, { 0 }, }; -static unsigned int features[] = { +static const unsigned int features[] = { VIRTIO_NET_F_CSUM, VIRTIO_NET_F_GUEST_CSUM, VIRTIO_NET_F_GSO, VIRTIO_NET_F_MAC, VIRTIO_NET_F_HOST_TSO4, VIRTIO_NET_F_HOST_UFO, VIRTIO_NET_F_HOST_TSO6, @@ -1290,7 +1290,7 @@ static unsigned int features[] = { VIRTIO_NET_F_GUEST_ANNOUNCE, }; -static struct virtio_driver virtio_net_driver = { +static struct virtio_driver virtio_net_driver __read_mostly = { .feature_table = features, .feature_table_size = ARRAY_SIZE(features), .driver.name = KBUILD_MODNAME, -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html