net/s390 drivers: add missing 'const' attribute
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 17 Nov 2009 14:47:02 +0000 (06:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2009 14:47:02 +0000 (06:47 -0800)
Add missing 'const' attribute to avoid the following compile warnings:

drivers/s390/net/ctcm_main.c: In function 'ctcm_init':
drivers/s390/net/ctcm_main.c:1864: warning: assignment from incompatible pointer type
drivers/s390/net/lcs.c: In function 'lcs_init_module':
drivers/s390/net/lcs.c:2468: warning: assignment from incompatible pointer type
drivers/s390/net/claw.c: In function 'claw_init':
drivers/s390/net/claw.c:3408: warning: assignment from incompatible pointer type

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/claw.c
drivers/s390/net/ctcm_main.c
drivers/s390/net/lcs.c

index cf283e3d2763c48f075ad86825ea7e271b845c1f..3c77bfe0764cb350d0a33bfee8ace4178af72ae4 100644 (file)
@@ -310,7 +310,7 @@ static struct attribute_group claw_group_attr_group = {
        .attrs = claw_group_attrs,
 };
 
-static struct attribute_group *claw_group_attr_groups[] = {
+static const struct attribute_group *claw_group_attr_groups[] = {
        &claw_group_attr_group,
        NULL,
 };
index 558dc323a9475a2cae973e309800ff9b92775660..e35713dd05040d6ef75e26f18833bf447469db27 100644 (file)
@@ -1806,7 +1806,7 @@ static struct attribute_group ctcm_group_attr_group = {
        .attrs = ctcm_group_attrs,
 };
 
-static struct attribute_group *ctcm_group_attr_groups[] = {
+static const struct attribute_group *ctcm_group_attr_groups[] = {
        &ctcm_group_attr_group,
        NULL,
 };
index 1d43d23f5ea3657dbde0cea876228d13fa768ba0..f6cc46dc0501644ca5eef0f82646b4876056bd37 100644 (file)
@@ -2440,7 +2440,7 @@ static struct attribute_group lcs_group_attr_group = {
        .attrs = lcs_group_attrs,
 };
 
-static struct attribute_group *lcs_group_attr_groups[] = {
+static const struct attribute_group *lcs_group_attr_groups[] = {
        &lcs_group_attr_group,
        NULL,
 };