]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/block/virtio_blk.c
Merge branch 'fix/hda' into for-linus
[karo-tx-linux.git] / drivers / block / virtio_blk.c
index fbeefb68a31fc6f9d65509a9552b9d7003af3489..aa1a3d5a3e2bc3f202bb695da2624f4d8cfd03b5 100644 (file)
@@ -427,7 +427,12 @@ static unsigned int features[] = {
        VIRTIO_BLK_F_SCSI, VIRTIO_BLK_F_IDENTIFY
 };
 
-static struct virtio_driver virtio_blk = {
+/*
+ * virtio_blk causes spurious section mismatch warning by
+ * simultaneously referring to a __devinit and a __devexit function.
+ * Use __refdata to avoid this warning.
+ */
+static struct virtio_driver __refdata virtio_blk = {
        .feature_table = features,
        .feature_table_size = ARRAY_SIZE(features),
        .driver.name =  KBUILD_MODNAME,