aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-04-24 19:22:42 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:29:50 -0400
commitbb7ec6dfb5aa32b5b4d7d6388b4098b33cd01e8c (patch)
tree49d06e7bfd6737bfa7dd36e508201d1ccf82a369 /net/ipv4
parent84299b3bc4eaedc0734fcc9052b01291e44445fc (diff)
[IPV4]: Fix build without procfs.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/Makefile4
-rw-r--r--net/ipv4/proc.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/Makefile b/net/ipv4/Makefile
index 4ff6c151d7f3..3bd25f56f5da 100644
--- a/net/ipv4/Makefile
+++ b/net/ipv4/Makefile
@@ -10,11 +10,11 @@ obj-y := route.o inetpeer.o protocol.o \
10 tcp_minisocks.o tcp_cong.o \ 10 tcp_minisocks.o tcp_cong.o \
11 datagram.o raw.o udp.o udplite.o \ 11 datagram.o raw.o udp.o udplite.o \
12 arp.o icmp.o devinet.o af_inet.o igmp.o \ 12 arp.o icmp.o devinet.o af_inet.o igmp.o \
13 sysctl_net_ipv4.o fib_frontend.o fib_semantics.o 13 sysctl_net_ipv4.o fib_frontend.o fib_semantics.o \
14 proc.o
14 15
15obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o 16obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o
16obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o 17obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o
17obj-$(CONFIG_PROC_FS) += proc.o
18obj-$(CONFIG_IP_MULTIPLE_TABLES) += fib_rules.o 18obj-$(CONFIG_IP_MULTIPLE_TABLES) += fib_rules.o
19obj-$(CONFIG_IP_MROUTE) += ipmr.o 19obj-$(CONFIG_IP_MROUTE) += ipmr.o
20obj-$(CONFIG_NET_IPIP) += ipip.o 20obj-$(CONFIG_NET_IPIP) += ipip.o
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 97952d54ae84..a236154591fa 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -45,6 +45,7 @@
45#include <net/sock.h> 45#include <net/sock.h>
46#include <net/raw.h> 46#include <net/raw.h>
47 47
48#ifdef CONFIG_PROC_FS
48static int fold_prot_inuse(struct proto *proto) 49static int fold_prot_inuse(struct proto *proto)
49{ 50{
50 int res = 0; 51 int res = 0;
@@ -390,6 +391,7 @@ out_netstat:
390 rc = -ENOMEM; 391 rc = -ENOMEM;
391 goto out; 392 goto out;
392} 393}
394#endif
393 395
394int snmp_mib_init(void *ptr[2], size_t mibsize, size_t mibalign) 396int snmp_mib_init(void *ptr[2], size_t mibsize, size_t mibalign)
395{ 397{