drivers/net/pcmcia: fix warning: format not a string literal and no ...
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:39:23 +0000 (11:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:37:58 +0000 (17:37 -0800)
Impact: Use 'static const char[]' instead of 'static char[]' and while
being at it prefix the message with KERN_INFO.

Fix this warnings:
  drivers/net/pcmcia/axnet_cs.c:1716: 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>
drivers/net/pcmcia/axnet_cs.c

index 0afa72095810e0f9ace213d48f5858bcbf5c5cf7..871ad2958ff6e8c0b9e5c3ad622b61f00df1422f 100644 (file)
@@ -861,7 +861,7 @@ module_exit(exit_axnet_cs);
 
   */
 
-static const char *version_8390 =
+static const char version_8390[] = KERN_INFO \
     "8390.c:v1.10cvs 9/23/94 Donald Becker (becker@scyld.com)\n";
 
 #include <linux/bitops.h>