Michael S. Tsirkin
2014-Nov-25 16:42 UTC
[PATCH v4 18/42] virtio_blk: make serial attribute static
It's never declared so no need to make it extern. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/block/virtio_blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index f601f16..055f3df 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) { -- MST
Gerd Hoffmann
2014-Nov-26 08:48 UTC
[PATCH v4 18/42] virtio_blk: make serial attribute static
On Di, 2014-11-25 at 18:42 +0200, Michael S. Tsirkin wrote:> It's never declared so no need to make it extern.Hmm, can't see patches 14 -> 17 on the maling list (virtualization at lists.linux-foundation.org). Also no cover letter. Someone eating mails? cheers, Gerd
Cornelia Huck
2014-Nov-26 09:50 UTC
[PATCH v4 18/42] virtio_blk: make serial attribute static
On Tue, 25 Nov 2014 18:42:42 +0200 "Michael S. Tsirkin" <mst at redhat.com> wrote:> It's never declared so no need to make it extern. > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com> > --- > drivers/block/virtio_blk.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > index f601f16..055f3df 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) > {The virtio-blk attributes might benefit from a conversion to attribute groups (which support masking and so on), but that's a different cleanup. So, fwiw: Acked-by: Cornelia Huck <cornelia.huck at de.ibm.com>
Apparently Analagous Threads
- [PATCH v4 18/42] virtio_blk: make serial attribute static
- [PATCH v3 17/41] virtio_blk: make serial attribute static
- [PATCH v5 20/45] virtio_blk: make serial attribute static
- [PATCH v6 21/46] virtio_blk: make serial attribute static
- [PATCH v7 21/46] virtio_blk: make serial attribute static