aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 06:48:07 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 22:34:48 -0500
commit5ee0d59335c551b7d3642f071bb4f3a30c287f59 (patch)
tree5cab635311af9f26790a0fafdb4a07ee551c395f /drivers
parent0227abc9d011892fd13f360b56a7b276ebea8b07 (diff)
drivers/net/wan: fix warning: format not a string literal and no ...
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wan/lapbether.c3
-rw-r--r--drivers/net/wan/z85230.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index da9dcf59de24..06beba47ffdf 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -430,7 +430,8 @@ static struct notifier_block lapbeth_dev_notifier = {
430 .notifier_call = lapbeth_device_event, 430 .notifier_call = lapbeth_device_event,
431}; 431};
432 432
433static char banner[] __initdata = KERN_INFO "LAPB Ethernet driver version 0.02\n"; 433static const char banner[] __initdata =
434 KERN_INFO "LAPB Ethernet driver version 0.02\n";
434 435
435static int __init lapbeth_init_driver(void) 436static int __init lapbeth_init_driver(void)
436{ 437{
diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c
index 3d00971fe5ee..ad4e79c4c5c3 100644
--- a/drivers/net/wan/z85230.c
+++ b/drivers/net/wan/z85230.c
@@ -1775,7 +1775,8 @@ EXPORT_SYMBOL(z8530_queue_xmit);
1775/* 1775/*
1776 * Module support 1776 * Module support
1777 */ 1777 */
1778static char banner[] __initdata = KERN_INFO "Generic Z85C30/Z85230 interface driver v0.02\n"; 1778static const char banner[] __initdata =
1779 KERN_INFO "Generic Z85C30/Z85230 interface driver v0.02\n";
1779 1780
1780static int __init z85230_init_driver(void) 1781static int __init z85230_init_driver(void)
1781{ 1782{