net: ping: fix build failure
authorVasiliy Kulikov <segoon@openwall.com>
Tue, 17 May 2011 00:16:56 +0000 (00:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2011 18:16:58 +0000 (14:16 -0400)
commitf56e03e8dc149bf0ac2888d6843584f48c8700fc
tree071864cd821423ff1caf06d824823b533cbcab77
parent6dcae1eaee2b437536b2fe928a609f9589691ebf
net: ping: fix build failure

If CONFIG_PROC_SYSCTL=n the building process fails:

    ping.c:(.text+0x52af3): undefined reference to `inet_get_ping_group_range_net'

Moved inet_get_ping_group_range_net() to ping.c.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ping.h
net/ipv4/ping.c
net/ipv4/sysctl_net_ipv4.c