From c6ce12828f9146f12d0654241bcb39523c257c90 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Tue, 1 Sep 2009 10:50:37 +1000 Subject: driver model: constify attribute groups Let attribute group vectors be declared "const". We'd like to let most attribute metadata live in read-only sections... this is a start. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block') diff --git a/block/genhd.c b/block/genhd.c index f4c64c2b303a..bc75f9cbc273 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -901,7 +901,7 @@ static struct attribute_group disk_attr_group = { .attrs = disk_attrs, }; -static struct attribute_group *disk_attr_groups[] = { +static const struct attribute_group *disk_attr_groups[] = { &disk_attr_group, NULL }; -- cgit v1.2.3