提交 64237470 编写于 作者: L Lin Zhang 提交者: David S. Miller

net: phonet: mark header_ops as const

Signed-off-by: NLin Zhang <xiaolou4617@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a1d753d2
......@@ -10,5 +10,5 @@
#include <uapi/linux/if_phonet.h>
extern struct header_ops phonet_header_ops;
extern const struct header_ops phonet_header_ops;
#endif
......@@ -149,7 +149,7 @@ static int pn_header_parse(const struct sk_buff *skb, unsigned char *haddr)
return 1;
}
struct header_ops phonet_header_ops = {
const struct header_ops phonet_header_ops = {
.create = pn_header_create,
.parse = pn_header_parse,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册