OSDN Git Service

[PATCH] make it possible to compile x86_64 without VT support
authorKrzysztof Strasburger <strasbur@chkw386.ch.pwr.wroc.pl>
Fri, 16 Mar 2007 04:33:47 +0000 (05:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Mar 2007 04:36:34 +0000 (05:36 +0100)
Add #ifdef CONFIG_VT where appropriate so that we can build the kernel
without VT support on x86_64.

arch/x86_64/ia32/ia32_ioctl.c

index a51984c..773decd 100644 (file)
@@ -1943,6 +1943,7 @@ static int loop_status(unsigned int fd, unsigned int cmd, unsigned long arg)
 
 extern int tty_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg);
 
+#ifdef CONFIG_VT
 static int vt_check(struct file *file)
 {
        struct tty_struct *tty;
@@ -2073,6 +2074,7 @@ static int do_unimap_ioctl(unsigned int fd, unsigned int cmd, struct unimapdesc3
        }
        return 0;
 }
+#endif /* CONFIG_VT */
 
 static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, unsigned long arg)
 {
@@ -4382,11 +4384,13 @@ HANDLE_IOCTL(LOOP_SET_STATUS, loop_status)
 HANDLE_IOCTL(LOOP_GET_STATUS, loop_status)
 #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,unsigned int)
 HANDLE_IOCTL(AUTOFS_IOC_SETTIMEOUT32, ioc_settimeout)
+#ifdef CONFIG_VT
 HANDLE_IOCTL(PIO_FONTX, do_fontx_ioctl)
 HANDLE_IOCTL(GIO_FONTX, do_fontx_ioctl)
 HANDLE_IOCTL(PIO_UNIMAP, do_unimap_ioctl)
 HANDLE_IOCTL(GIO_UNIMAP, do_unimap_ioctl)
 HANDLE_IOCTL(KDFONTOP, do_kdfontop_ioctl)
+#endif
 HANDLE_IOCTL(EXT2_IOC32_GETFLAGS, do_ext2_ioctl)
 HANDLE_IOCTL(EXT2_IOC32_SETFLAGS, do_ext2_ioctl)
 HANDLE_IOCTL(EXT2_IOC32_GETVERSION, do_ext2_ioctl)