Skip to content

Commit

Permalink
net/s390 drivers: add missing 'const' attribute
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
heicarst authored and davem330 committed Nov 17, 2009
1 parent b76965e commit 302689a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/s390/net/claw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/s390/net/lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 302689a

Please sign in to comment.