compiling without CONFIG_NET broken in 2.5.41

From: Miles Bader (miles@lsi.nec.co.jp)
Date: Thu Oct 10 2002 - 23:22:37 EST


Hi,

I used to be able to compile linux without CONFIG_NET, but in 2.5.41,
doing so makes compilation fail. The reason is that net/socket.c
references `dev_ioctl', which is only defined when CONFIG_NET is
enabled.

I can avoid the problem like this:

--- ../orig/linux-2.5.41/net/socket.c 2002-10-10 11:40:28.000000000 +0900
+++ net/socket.c 2002-10-11 13:06:39.000000000 +0900
@@ -691,9 +691,11 @@
 
         unlock_kernel();
         sock = SOCKET_I(inode);
+#ifdef CONFIG_NET
         if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
                 err = dev_ioctl(cmd, (void *)arg);
         } else
+#endif /* CONFIG_NET */
 #ifdef WIRELESS_EXT
         if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
                 err = dev_ioctl(cmd, (void *)arg);

It seems to work fine, but I have no idea if this is really the correct
solution or not.

I'd appreciate it if someone could look at this and install a fix.

Thanks,

-Miles

-- 
The secret to creativity is knowing how to hide your sources.
  --Albert Einstein

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:42 EST