提交 aa8db499 编写于 作者: B Bhumika Goyal 提交者: David S. Miller

ipv4: make net_protocol const

Make these const as they are only passed to a const argument of the
function inet_add_protocol.
Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 eb73ddeb
......@@ -1596,7 +1596,7 @@ static const struct net_protocol igmp_protocol = {
};
#endif
static struct net_protocol tcp_protocol = {
static const struct net_protocol tcp_protocol = {
.early_demux = tcp_v4_early_demux,
.early_demux_handler = tcp_v4_early_demux,
.handler = tcp_v4_rcv,
......@@ -1606,7 +1606,7 @@ static struct net_protocol tcp_protocol = {
.icmp_strict_tag_validation = 1,
};
static struct net_protocol udp_protocol = {
static const struct net_protocol udp_protocol = {
.early_demux = udp_v4_early_demux,
.early_demux_handler = udp_v4_early_demux,
.handler = udp_rcv,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册