From: Stephen Hemminger <shemminger@vyatta.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH 01/15] tulip: get rid of warning for non-const string literal
Date: Thu, 26 Feb 2009 12:19:22 -0800 [thread overview]
Message-ID: <20090226201949.162730782@vyatta.com> (raw)
In-Reply-To: 20090226201921.462146178@vyatta.com
[-- Attachment #1: dmfe-string.patch --]
[-- Type: text/plain, Size: 2262 bytes --]
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/drivers/net/tulip/dmfe.c 2009-02-26 09:35:40.000000000 -0800
+++ b/drivers/net/tulip/dmfe.c 2009-02-26 09:36:21.000000000 -0800
@@ -288,7 +288,7 @@ enum dmfe_CR6_bits {
/* Global variable declaration ----------------------------- */
static int __devinitdata printed_version;
-static char version[] __devinitdata =
+static const char version[] __devinitconst =
KERN_INFO DRV_NAME ": Davicom DM9xxx net driver, version "
DRV_VERSION " (" DRV_RELDATE ")\n";
--- a/drivers/net/tulip/winbond-840.c 2009-02-26 09:37:40.000000000 -0800
+++ b/drivers/net/tulip/winbond-840.c 2009-02-26 09:39:38.000000000 -0800
@@ -139,9 +139,10 @@ static int full_duplex[MAX_UNITS] = {-1,
#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/
/* These identify the driver base version and may not be removed. */
-static const char version[] __initdata =
-KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE " Donald Becker <becker@scyld.com>\n"
-KERN_INFO " http://www.scyld.com/network/drivers.html\n";
+static const char version[] __initconst =
+ KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) "
+ DRV_RELDATE " Donald Becker <becker@scyld.com>\n"
+ KERN_INFO " http://www.scyld.com/network/drivers.html\n";
MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
MODULE_DESCRIPTION("Winbond W89c840 Ethernet driver");
--- a/drivers/net/tulip/de4x5.c 2009-02-26 09:40:54.000000000 -0800
+++ b/drivers/net/tulip/de4x5.c 2009-02-26 09:41:38.000000000 -0800
@@ -479,7 +479,7 @@
#include "de4x5.h"
-static const char version[] __devinitdata =
+static const char version[] __devinitconst =
KERN_INFO "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n";
#define c_char const char
--- a/drivers/net/tulip/uli526x.c 2009-02-26 09:41:52.000000000 -0800
+++ b/drivers/net/tulip/uli526x.c 2009-02-26 09:42:14.000000000 -0800
@@ -200,7 +200,7 @@ enum uli526x_CR6_bits {
/* Global variable declaration ----------------------------- */
static int __devinitdata printed_version;
-static char version[] __devinitdata =
+static const char version[] __devinitconst =
KERN_INFO DRV_NAME ": ULi M5261/M5263 net driver, version "
DRV_VERSION " (" DRV_RELDATE ")\n";
--
next prev parent reply other threads:[~2009-02-26 20:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 20:19 [PATCH 00/15] Fix warnings about non-const strings Stephen Hemminger
2009-02-26 20:19 ` Stephen Hemminger [this message]
2009-02-26 20:19 ` [PATCH 02/15] lapb: get rid of non-const printk warning Stephen Hemminger
2009-02-26 20:19 ` [PATCH 03/15] 3c59x: get rid of non-const printk warnings Stephen Hemminger
2009-02-26 20:19 ` [PATCH 04/15] ne2k-pci: fix non-constant " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 05/15] sis900: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 06/15] yellowfin: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 07/15] acenic: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 08/15] natsemi: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 09/15] fealnx: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 10/15] via-rhine: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 11/15] starfire: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 12/15] sundance: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 13/15] hamachi: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 14/15] forcedeth: " Stephen Hemminger
2009-02-26 20:19 ` [PATCH 15/15] mdio: " Stephen Hemminger
2009-02-27 6:23 ` [PATCH 00/15] Fix warnings about non-const strings 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=20090226201949.162730782@vyatta.com \
--to=shemminger@vyatta.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;
as well as URLs for NNTP newsgroup(s).