virtio_blk: make serial attribute static
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 23 Oct 2014 13:08:44 +0000 (16:08 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:27 +0000 (12:05 +0200)
It's never declared so no need to make it extern.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/block/virtio_blk.c

index f601f16eabf4f802038ff66ce16f36d08b227cd0..055f3df0b4d0192c4d890341451de70c1f4f5fc8 100644 (file)
@@ -332,7 +332,8 @@ static ssize_t virtblk_serial_show(struct device *dev,
 
        return err;
 }
-DEVICE_ATTR(serial, S_IRUGO, virtblk_serial_show, NULL);
+
+static DEVICE_ATTR(serial, S_IRUGO, virtblk_serial_show, NULL);
 
 static void virtblk_config_changed_work(struct work_struct *work)
 {