projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af9ca13
)
virtio_blk: make serial attribute static
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 23 Oct 2014 13:08:44 +0000
(16:08 +0300)
committer
Michael 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/virtio_blk.c
b/drivers/block/virtio_blk.c
index f601f16eabf4f802038ff66ce16f36d08b227cd0..055f3df0b4d0192c4d890341451de70c1f4f5fc8 100644
(file)
--- 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)
{