public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen-blkback: constify instance of "struct attribute_group"
@ 2016-07-07  7:38 Jan Beulich
  2016-07-07  9:45 ` Roger Pau Monne
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2016-07-07  7:38 UTC (permalink / raw)
  To: Roger Pau Monne, Konrad Rzeszutek Wilk; +Cc: xen-devel, linux-kernel

The functions such get passed to have been taking pointers to const
since at least 2.6.16.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 drivers/block/xen-blkback/xenbus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 4.7-rc6-xen.orig/drivers/block/xen-blkback/xenbus.c
+++ 4.7-rc6-xen/drivers/block/xen-blkback/xenbus.c
@@ -379,7 +379,7 @@ static struct attribute *xen_vbdstat_att
 	NULL
 };
 
-static struct attribute_group xen_vbdstat_group = {
+static const struct attribute_group xen_vbdstat_group = {
 	.name = "statistics",
 	.attrs = xen_vbdstat_attrs,
 };

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-08 13:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-07  7:38 [PATCH] xen-blkback: constify instance of "struct attribute_group" Jan Beulich
2016-07-07  9:45 ` Roger Pau Monne
2016-07-07  9:52   ` [Xen-devel] " Andrew Cooper
2016-07-07 15:37     ` Konrad Rzeszutek Wilk
2016-07-07 15:57       ` Jan Beulich
2016-07-08 13:55         ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox