diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-11-17 09:47:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-17 09:47:02 -0500 |
commit | 302689ac47b563f9d4d8318f399bae225658eec8 (patch) | |
tree | 90d799d0d30da55bfc39c082e1a0a6fdd623ea66 /drivers/s390/net | |
parent | b76965e02bfdd4164c00bf946ff6ca1818ed9fcd (diff) |
net/s390 drivers: add missing 'const' attribute
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>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/claw.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/ctcm_main.c | 2 | ||||
-rw-r--r-- | drivers/s390/net/lcs.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index cf283e3d2763..3c77bfe0764c 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -310,7 +310,7 @@ static struct attribute_group claw_group_attr_group = { | |||
310 | .attrs = claw_group_attrs, | 310 | .attrs = claw_group_attrs, |
311 | }; | 311 | }; |
312 | 312 | ||
313 | static struct attribute_group *claw_group_attr_groups[] = { | 313 | static const struct attribute_group *claw_group_attr_groups[] = { |
314 | &claw_group_attr_group, | 314 | &claw_group_attr_group, |
315 | NULL, | 315 | NULL, |
316 | }; | 316 | }; |
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index 558dc323a947..e35713dd0504 100644 --- a/drivers/s390/net/ctcm_main.c +++ b/drivers/s390/net/ctcm_main.c | |||
@@ -1806,7 +1806,7 @@ static struct attribute_group ctcm_group_attr_group = { | |||
1806 | .attrs = ctcm_group_attrs, | 1806 | .attrs = ctcm_group_attrs, |
1807 | }; | 1807 | }; |
1808 | 1808 | ||
1809 | static struct attribute_group *ctcm_group_attr_groups[] = { | 1809 | static const struct attribute_group *ctcm_group_attr_groups[] = { |
1810 | &ctcm_group_attr_group, | 1810 | &ctcm_group_attr_group, |
1811 | NULL, | 1811 | NULL, |
1812 | }; | 1812 | }; |
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 1d43d23f5ea3..f6cc46dc0501 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -2440,7 +2440,7 @@ static struct attribute_group lcs_group_attr_group = { | |||
2440 | .attrs = lcs_group_attrs, | 2440 | .attrs = lcs_group_attrs, |
2441 | }; | 2441 | }; |
2442 | 2442 | ||
2443 | static struct attribute_group *lcs_group_attr_groups[] = { | 2443 | static const struct attribute_group *lcs_group_attr_groups[] = { |
2444 | &lcs_group_attr_group, | 2444 | &lcs_group_attr_group, |
2445 | NULL, | 2445 | NULL, |
2446 | }; | 2446 | }; |