summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-10-23 17:08:44 +0400
committerMichael S. Tsirkin <mst@redhat.com>2014-12-09 13:05:27 +0300
commit393c525b5bea6989380c4b57508ec901488079f0 (patch)
tree4762d1f72d7465c68b3df5d4f82d1f911dce812f /drivers/block
parentaf9ca13b4430107bdae8557801b4274ee3c5b378 (diff)
downloadlinux-393c525b5bea6989380c4b57508ec901488079f0.tar.xz
virtio_blk: make serial attribute static
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index f601f16eabf4..055f3df0b4d0 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -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)
{