drivers/net/wan: fix warning: format not a string literal and no ...
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:48:07 +0000 (11:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 03:34:48 +0000 (19:34 -0800)
Impact: Use 'static const char[]' instead of 'static char[]'.

Fix this compilation warnings:
  drivers/net/wan/lapbether.c: In function 'lapbeth_init_driver':
  drivers/net/wan/lapbether.c:441: warning: format not a string literal and no format arguments
  drivers/net/wan/z85230.c: In function 'z85230_init_driver':
  drivers/net/wan/z85230.c:1782: 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/wan/lapbether.c
drivers/net/wan/z85230.c

index da9dcf59de243d8bbfad5458e1f1d9ecb0491f6c..06beba47ffdf5f7267e2bb88843a0ed760b58922 100644 (file)
@@ -430,7 +430,8 @@ static struct notifier_block lapbeth_dev_notifier = {
        .notifier_call = lapbeth_device_event,
 };
 
-static char banner[] __initdata = KERN_INFO "LAPB Ethernet driver version 0.02\n";
+static const char banner[] __initdata =
+       KERN_INFO "LAPB Ethernet driver version 0.02\n";
 
 static int __init lapbeth_init_driver(void)
 {
index 3d00971fe5ee6a6dc488d99bf72e262cf06f8a6f..ad4e79c4c5c3e8073783e1ab9df51de493b19557 100644 (file)
@@ -1775,7 +1775,8 @@ EXPORT_SYMBOL(z8530_queue_xmit);
 /*
  *     Module support
  */
-static char banner[] __initdata = KERN_INFO "Generic Z85C30/Z85230 interface driver v0.02\n";
+static const char banner[] __initdata =
+       KERN_INFO "Generic Z85C30/Z85230 interface driver v0.02\n";
 
 static int __init z85230_init_driver(void)
 {