From: Andrew Morton Date: Wed, 12 Mar 2008 01:03:35 +0000 (-0700) Subject: net: fix build with CONFIG_NET=n X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~38238^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b2211a361a4289c83971f89da53fe2eb9e72769d;p=mirror_ubuntu-focal-kernel.git net: fix build with CONFIG_NET=n 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 Signed-off-by: David S. Miller --- diff --git a/fs/proc/base.c b/fs/proc/base.c index cc43cf0c1fa5..3217774d269f 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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),