]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4: Fix missing raw_init when CONFIG_PROC_FS is disabled
authorDavid Ahern <dsahern@gmail.com>
Wed, 28 Nov 2018 04:52:24 +0000 (20:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 04:58:02 +0000 (20:58 -0800)
commitd1f3187c0f940797ba59bfea9173cefd46276483
tree9b118757b88b67016ccb07d52c4be52c8b41b414
parent02a6bc8d0e649b310156e7a4293e8f58d56472b9
net/ipv4: Fix missing raw_init when CONFIG_PROC_FS is disabled

Randy reported when CONFIG_PROC_FS is not enabled:
    ld: net/ipv4/af_inet.o: in function `inet_init':
    af_inet.c:(.init.text+0x42d): undefined reference to `raw_init'

Fix by moving the endif up to the end of the proc entries

Fixes: ac95e7bd9425f ("net: provide a sysctl raw_l3mdev_accept for raw socket lookup with VRFs")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mike Manning <mmanning@vyatta.att-mail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c