提交 e6560d4d 编写于 作者: E Eric Dumazet 提交者: David S. Miller

net: ping: remove some sparse errors

net/ipv4/sysctl_net_ipv4.c:78:6: warning: symbol 'inet_get_ping_group_range_table'
was not declared. Should it be static?

net/ipv4/sysctl_net_ipv4.c:119:31: warning: incorrect type in argument 2
(different signedness)
net/ipv4/sysctl_net_ipv4.c:119:31: expected int *range
net/ipv4/sysctl_net_ipv4.c:119:31: got unsigned int *<noident>
Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3a53943b
...@@ -75,7 +75,7 @@ static int ipv4_local_port_range(ctl_table *table, int write, ...@@ -75,7 +75,7 @@ static int ipv4_local_port_range(ctl_table *table, int write,
} }
void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high) static void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high)
{ {
gid_t *data = table->data; gid_t *data = table->data;
unsigned seq; unsigned seq;
...@@ -88,7 +88,7 @@ void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t ...@@ -88,7 +88,7 @@ void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t
} }
/* Update system visible IP port range */ /* Update system visible IP port range */
static void set_ping_group_range(struct ctl_table *table, int range[2]) static void set_ping_group_range(struct ctl_table *table, gid_t range[2])
{ {
gid_t *data = table->data; gid_t *data = table->data;
write_seqlock(&sysctl_local_ports.lock); write_seqlock(&sysctl_local_ports.lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册