xen-blkback: constify instance of "struct attribute_group"
authorJan Beulich <JBeulich@suse.com>
Thu, 7 Jul 2016 07:38:58 +0000 (01:38 -0600)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 22 Jul 2016 12:23:52 +0000 (08:23 -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>
drivers/block/xen-blkback/xenbus.c

index bf09ffe5d460a493c4fb53e1fba0da5a698b0e37..b44eaf40bb2993fd76909948e846bd583e002d18 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,
 };