diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-10-23 16:08:44 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-12-09 12:05:27 +0200 |
commit | 393c525b5bea6989380c4b57508ec901488079f0 (patch) | |
tree | 4762d1f72d7465c68b3df5d4f82d1f911dce812f /drivers/block/virtio_blk.c | |
parent | af9ca13b4430107bdae8557801b4274ee3c5b378 (diff) | |
download | lwn-393c525b5bea6989380c4b57508ec901488079f0.tar.gz lwn-393c525b5bea6989380c4b57508ec901488079f0.zip |
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/virtio_blk.c')
-rw-r--r-- | drivers/block/virtio_blk.c | 3 |
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) { |