Commit 2db09608 authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

appletalk: fix warning: format not a string literal and no ...

Impact: Use 'static const char[]' instead of 'static char[]', and
since the data is const now it can be placed in __initconst.

Fix this warning:
  net/appletalk/ddp.c: In function 'atalk_init':
  net/appletalk/ddp.c:1894: warning: format not a string literal and no format arguments
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3db6cb4
...@@ -1877,7 +1877,7 @@ EXPORT_SYMBOL(aarp_send_ddp); ...@@ -1877,7 +1877,7 @@ EXPORT_SYMBOL(aarp_send_ddp);
EXPORT_SYMBOL(atrtr_get_dev); EXPORT_SYMBOL(atrtr_get_dev);
EXPORT_SYMBOL(atalk_find_dev_addr); EXPORT_SYMBOL(atalk_find_dev_addr);
static char atalk_err_snap[] __initdata = static const char atalk_err_snap[] __initconst =
KERN_CRIT "Unable to register DDP with SNAP.\n"; KERN_CRIT "Unable to register DDP with SNAP.\n";
/* Called by proto.c on kernel start up */ /* Called by proto.c on kernel start up */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment