提交 01af4a0e 编写于 作者: S Stephen Hemminger 提交者: David S. Miller

llc: fix non-const printk warning

Mark some strings as const.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Acked-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5747a1aa
...@@ -1118,11 +1118,11 @@ static const struct proto_ops llc_ui_ops = { ...@@ -1118,11 +1118,11 @@ static const struct proto_ops llc_ui_ops = {
.sendpage = sock_no_sendpage, .sendpage = sock_no_sendpage,
}; };
static char llc_proc_err_msg[] __initdata = static const char llc_proc_err_msg[] __initconst =
KERN_CRIT "LLC: Unable to register the proc_fs entries\n"; KERN_CRIT "LLC: Unable to register the proc_fs entries\n";
static char llc_sysctl_err_msg[] __initdata = static const char llc_sysctl_err_msg[] __initconst =
KERN_CRIT "LLC: Unable to register the sysctl entries\n"; KERN_CRIT "LLC: Unable to register the sysctl entries\n";
static char llc_sock_err_msg[] __initdata = static const char llc_sock_err_msg[] __initconst =
KERN_CRIT "LLC: Unable to register the network family\n"; KERN_CRIT "LLC: Unable to register the network family\n";
static int __init llc2_init(void) static int __init llc2_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册