mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
To: linux-kernel@vger.kernel.org
Subject: compiling without CONFIG_NET broken in 2.5.41
Date: 11 Oct 2002 13:22:37 +0900	[thread overview]
Message-ID: <buo1y6xy582.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)

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


             reply	other threads:[~2002-10-12  2:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11  4:22 Miles Bader [this message]
2002-10-12  2:46 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buo1y6xy582.fsf@mcspd15.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®