diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-03-17 21:22:13 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-03-17 21:22:13 +0000 |
commit | 4336fdf7d7c48ccaaadeb11cbcb4e8543d4018f4 (patch) | |
tree | 73757695a54b7f6d23fb53417fc525520903c162 /arch/mips64/kernel/ioctl32.c | |
parent | b4e120a7adba8b1dadb9ddf87a378e400c09ca08 (diff) |
Make compile with CONFIG_NET disabled.
Diffstat (limited to 'arch/mips64/kernel/ioctl32.c')
-rw-r--r-- | arch/mips64/kernel/ioctl32.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips64/kernel/ioctl32.c b/arch/mips64/kernel/ioctl32.c index a284357a1..6e75c5594 100644 --- a/arch/mips64/kernel/ioctl32.c +++ b/arch/mips64/kernel/ioctl32.c @@ -7,6 +7,7 @@ * * Mostly stolen from the sparc64 ioctl32 implementation. */ +#include <linux/config.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/fs.h> @@ -108,6 +109,8 @@ struct ifconf32 { __kernel_caddr_t32 ifcbuf; }; +#ifdef CONFIG_NET + static int dev_ifname32(unsigned int fd, unsigned int cmd, unsigned long arg) { struct ireq32 *uir32 = (struct ireq32 *)arg; @@ -308,6 +311,8 @@ static inline int routing_ioctl(unsigned int fd, unsigned int cmd, unsigned long return ret; } +#endif /* CONFIG_NET */ + static int do_ext2_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) { /* These are just misnamed, they actually get/put from/to user an int */ @@ -634,6 +639,7 @@ static struct ioctl32_list ioctl32_handler_table[] = { IOCTL32_DEFAULT(VT_LOCKSWITCH), IOCTL32_DEFAULT(VT_UNLOCKSWITCH), +#ifdef CONFIG_NET IOCTL32_HANDLER(SIOCGIFNAME, dev_ifname32), IOCTL32_HANDLER(SIOCGIFCONF, dev_ifconf), IOCTL32_HANDLER(SIOCGIFFLAGS, dev_ifsioc), @@ -666,6 +672,8 @@ static struct ioctl32_list ioctl32_handler_table[] = { IOCTL32_HANDLER(SIOCADDRT, routing_ioctl), IOCTL32_HANDLER(SIOCDELRT, routing_ioctl), +#endif /* CONFIG_NET */ + IOCTL32_HANDLER(EXT2_IOC32_GETFLAGS, do_ext2_ioctl), IOCTL32_HANDLER(EXT2_IOC32_SETFLAGS, do_ext2_ioctl), IOCTL32_HANDLER(EXT2_IOC32_GETVERSION, do_ext2_ioctl), |