aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/virtio_blk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 43db3ea15b54..024f2d292581 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -424,7 +424,12 @@ static unsigned int features[] = {
424 VIRTIO_BLK_F_SCSI, VIRTIO_BLK_F_IDENTIFY 424 VIRTIO_BLK_F_SCSI, VIRTIO_BLK_F_IDENTIFY
425}; 425};
426 426
427static struct virtio_driver virtio_blk = { 427/*
428 * virtio_blk causes spurious section mismatch warning by
429 * simultaneously referring to a __devinit and a __devexit function.
430 * Use __refdata to avoid this warning.
431 */
432static struct virtio_driver __refdata virtio_blk = {
428 .feature_table = features, 433 .feature_table = features,
429 .feature_table_size = ARRAY_SIZE(features), 434 .feature_table_size = ARRAY_SIZE(features),
430 .driver.name = KBUILD_MODNAME, 435 .driver.name = KBUILD_MODNAME,