drivers/net/hamradio: fix warning: format not a string literal and no ...
Impact: Use 'static const char[]' instead of 'static char[]' and while being at it fix an issue in 'mkiss_init_driver', where in case of an error the status code was not passed to printk. Fix this warnings: drivers/net/hamradio/6pack.c: In function 'sixpack_init_driver': drivers/net/hamradio/6pack.c:802: warning: format not a string literal and no format arguments drivers/net/hamradio/bpqether.c: In function 'bpq_init_driver': drivers/net/hamradio/bpqether.c:609: warning: format not a string literal and no format arguments drivers/net/hamradio/mkiss.c: In function 'mkiss_init_driver': drivers/net/hamradio/mkiss.c:988: warning: format not a string literal and no format arguments drivers/net/hamradio/mkiss.c:991: warning: format not a string literal and no format arguments drivers/net/hamradio/scc.c: In function 'scc_init_driver': drivers/net/hamradio/scc.c:2109: warning: format not a string literal and no format arguments drivers/net/hamradio/yam.c: In function 'yam_init_driver': drivers/net/hamradio/yam.c:1094: 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>
This commit is contained in:
committed by
David S. Miller
parent
f637011795
commit
eb33ae2486
@@ -790,9 +790,9 @@ static struct tty_ldisc_ops sp_ldisc = {
|
||||
|
||||
/* Initialize 6pack control device -- register 6pack line discipline */
|
||||
|
||||
static char msg_banner[] __initdata = KERN_INFO \
|
||||
static const char msg_banner[] __initdata = KERN_INFO \
|
||||
"AX.25: 6pack driver, " SIXPACK_VERSION "\n";
|
||||
static char msg_regfail[] __initdata = KERN_ERR \
|
||||
static const char msg_regfail[] __initdata = KERN_ERR \
|
||||
"6pack: can't register line discipline (err = %d)\n";
|
||||
|
||||
static int __init sixpack_init_driver(void)
|
||||
|
Reference in New Issue
Block a user