diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 05:31:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:13:33 -0500 |
commit | 2db096086e8ff6c2a42881966e441157c686603b (patch) | |
tree | ae3fdb50296ec9e4530742e42082fdbb87492ef9 /net/appletalk/ddp.c | |
parent | e3db6cb42123f6dbde36122a4c81a06282370e1e (diff) |
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: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 510a6782da8f..cf05c43cba52 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -1877,7 +1877,7 @@ EXPORT_SYMBOL(aarp_send_ddp); | |||
1877 | EXPORT_SYMBOL(atrtr_get_dev); | 1877 | EXPORT_SYMBOL(atrtr_get_dev); |
1878 | EXPORT_SYMBOL(atalk_find_dev_addr); | 1878 | EXPORT_SYMBOL(atalk_find_dev_addr); |
1879 | 1879 | ||
1880 | static char atalk_err_snap[] __initdata = | 1880 | static const char atalk_err_snap[] __initconst = |
1881 | KERN_CRIT "Unable to register DDP with SNAP.\n"; | 1881 | KERN_CRIT "Unable to register DDP with SNAP.\n"; |
1882 | 1882 | ||
1883 | /* Called by proto.c on kernel start up */ | 1883 | /* Called by proto.c on kernel start up */ |