From: Jan Beulich Date: Thu, 7 Jul 2016 07:38:58 +0000 (-0600) Subject: xen-blkback: constify instance of "struct attribute_group" X-Git-Tag: v4.1.12-92~55^2~16 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=360c5b81e1e833015c1b93b976ccbedf6d92130e;p=users%2Fjedix%2Flinux-maple.git xen-blkback: constify instance of "struct attribute_group" The functions these get passed to have been taking pointers to const since at least 2.6.16. Acked-by: Jens Axboe Acked-by: Roger Pau Monné Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk (cherry picked from commit 530439484d2d9f2a7f1038b1afd3d3543ecc63f6) Signed-off-by: Bob Liu Orabug: 24820937 --- diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 43f8a1c9622f1..ec93a4d305d4b 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -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, };