]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen-blkback: constify instance of "struct attribute_group"
authorJan Beulich <JBeulich@suse.com>
Thu, 7 Jul 2016 07:38:58 +0000 (01:38 -0600)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 08:01:13 +0000 (04:01 -0400)
The functions these get passed to have been taking pointers to const
since at least 2.6.16.

Acked-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 530439484d2d9f2a7f1038b1afd3d3543ecc63f6)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937

drivers/block/xen-blkback/xenbus.c

index 43f8a1c9622f1c56ad4f2f5232118ff3968cbdd3..ec93a4d305d4b35df3012b281deedb0cfd048fcb 100644 (file)
@@ -379,7 +379,7 @@ static struct attribute *xen_vbdstat_attrs[] = {
        NULL
 };
 
-static struct attribute_group xen_vbdstat_group = {
+static const struct attribute_group xen_vbdstat_group = {
        .name = "statistics",
        .attrs = xen_vbdstat_attrs,
 };