aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 06:46:59 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 22:34:46 -0500
commit65d9b8b19dd21eeff8c051484b9e972e0b932ff2 (patch)
tree554668559c135463d31d69382af4f1833cb4fda1 /drivers/net
parent05076c1824a5cc164c3d714f7b16ac61cb9bbbf5 (diff)
drivers/net/tulip: fix warning: format not a string literal and no ...
Impact: Use 'static const char[]' instead of 'static char[]' and while being at it add a KERN_INFO prefix. Fix this warning: drivers/net/tulip/de4x5.c: In function 'de4x5_hw_init': drivers/net/tulip/de4x5.c:1268: warning: format not a string literal and no format arguments drivers/net/tulip/winbond-840.c: In function 'w840_init': drivers/net/tulip/winbond-840.c:1666: warning: format not a string literal and no format arguments Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/tulip/de4x5.c3
-rw-r--r--drivers/net/tulip/winbond-840.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c
index 6418f74415d7..98e86826b2c7 100644
--- a/drivers/net/tulip/de4x5.c
+++ b/drivers/net/tulip/de4x5.c
@@ -479,7 +479,8 @@
479 479
480#include "de4x5.h" 480#include "de4x5.h"
481 481
482static char version[] __devinitdata = "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n"; 482static const char version[] __devinitdata =
483 KERN_INFO "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n";
483 484
484#define c_char const char 485#define c_char const char
485 486
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c
index f467bf87817d..426b7c73e36a 100644
--- a/drivers/net/tulip/winbond-840.c
+++ b/drivers/net/tulip/winbond-840.c
@@ -139,7 +139,7 @@ static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
139#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/ 139#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/
140 140
141/* These identify the driver base version and may not be removed. */ 141/* These identify the driver base version and may not be removed. */
142static char version[] = 142static const char version[] __initdata =
143KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE " Donald Becker <becker@scyld.com>\n" 143KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE " Donald Becker <becker@scyld.com>\n"
144KERN_INFO " http://www.scyld.com/network/drivers.html\n"; 144KERN_INFO " http://www.scyld.com/network/drivers.html\n";
145 145