[PATCH 29/43] drivers/net/tokenring: fix warning: format not a stringliteral and no ...

From: Hannes Eder
Date: Sat Feb 14 2009 - 16:44:37 EST


Impact: Use 'static const char[]' instead of 'static char[]'.

Fix this warnings:
drivers/net/tokenring/smctr.c:3644: warning: format not a string literal and no format arguments

Signed-off-by: Hannes Eder <hannes@xxxxxxxxxxxxxx>
---
drivers/net/tokenring/smctr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tokenring/smctr.c b/drivers/net/tokenring/smctr.c
index 50eb29c..5a3ff20 100644
--- a/drivers/net/tokenring/smctr.c
+++ b/drivers/net/tokenring/smctr.c
@@ -61,7 +61,8 @@

#include "smctr.h" /* Our Stuff */

-static char version[] __initdata = KERN_INFO "smctr.c: v1.4 7/12/00 by jschlst@xxxxxxxxx\n";
+static const char version[] __initdata =
+ KERN_INFO "smctr.c: v1.4 7/12/00 by jschlst@xxxxxxxxx\n";
static const char cardname[] = "smctr";



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/