From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: David Miller <davem@davemloft.net>
Cc: Ursula Braun <braunu@de.ibm.com>, netdev@vger.kernel.org
Subject: [PATCH] net/s390 drivers: add missing 'const' attribute
Date: Tue, 17 Nov 2009 14:48:15 +0100 [thread overview]
Message-ID: <20091117134815.GE5124@osiris.boeblingen.de.ibm.com> (raw)
Subject: [PATCH] net/s390 drivers: add missing 'const' attribute
From: Heiko Carstens <heiko.carstens@de.ibm.com>
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
Cc: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
Patch applies on top of linux-next of 17th November.
drivers/s390/net/claw.c | 2 +-
drivers/s390/net/ctcm_main.c | 2 +-
drivers/s390/net/lcs.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: linux-next/drivers/s390/net/ctcm_main.c
===================================================================
--- linux-next.orig/drivers/s390/net/ctcm_main.c
+++ linux-next/drivers/s390/net/ctcm_main.c
@@ -1806,7 +1806,7 @@ static struct attribute_group ctcm_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: linux-next/drivers/s390/net/lcs.c
===================================================================
--- linux-next.orig/drivers/s390/net/lcs.c
+++ linux-next/drivers/s390/net/lcs.c
@@ -2440,7 +2440,7 @@ static struct attribute_group lcs_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,
};
Index: linux-next/drivers/s390/net/claw.c
===================================================================
--- linux-next.orig/drivers/s390/net/claw.c
+++ linux-next/drivers/s390/net/claw.c
@@ -310,7 +310,7 @@ static struct attribute_group claw_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,
};
next reply other threads:[~2009-11-17 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 13:48 Heiko Carstens [this message]
2009-11-17 14:47 ` [PATCH] net/s390 drivers: add missing 'const' attribute David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091117134815.GE5124@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=braunu@de.ibm.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox