]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: fix build with CONFIG_NET=n
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 12 Mar 2008 01:03:35 +0000 (18:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2008 01:03:35 +0000 (18:03 -0700)
fs/built-in.o:(.rodata+0x1134): undefined reference to `proc_net_inode_operations'
fs/built-in.o:(.rodata+0x1138): undefined reference to `proc_net_operations'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/proc/base.c

index cc43cf0c1fa5f510a140d155ed16ffa1474138b2..3217774d269f6773d5fa9742ee7094572c41ee24 100644 (file)
@@ -2274,7 +2274,9 @@ static const struct pid_entry tgid_base_stuff[] = {
        DIR("task",       S_IRUGO|S_IXUGO, task),
        DIR("fd",         S_IRUSR|S_IXUSR, fd),
        DIR("fdinfo",     S_IRUSR|S_IXUSR, fdinfo),
+#ifdef CONFIG_NET
        DIR("net",        S_IRUGO|S_IXUSR, net),
+#endif
        REG("environ",    S_IRUSR, environ),
        INF("auxv",       S_IRUSR, pid_auxv),
        ONE("status",     S_IRUGO, pid_status),