]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 08:53:55 +0000 (09:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 08:53:55 +0000 (09:53 +0100)
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
drivers/xen/xenbus/xenbus_dev.c

index eee977928d5d69cfd702c2062c5b96cbee79a0f1..52646f198e8a91a661b34d32648a74e50e09681b 100644 (file)
@@ -387,6 +387,7 @@ static unsigned int xenbus_dev_poll(struct file *file, poll_table *wait)
        return 0;
 }
 
+#ifdef HAVE_UNLOCKED_IOCTL
 static long xenbus_dev_ioctl(struct file *file,
                              unsigned int cmd, unsigned long data)
 {
@@ -436,6 +437,7 @@ static long xenbus_dev_ioctl(struct file *file,
 
        return ret;
 }
+#endif
 
 static const struct file_operations xenbus_dev_file_ops = {
        .read = xenbus_dev_read,
@@ -443,7 +445,9 @@ static const struct file_operations xenbus_dev_file_ops = {
        .open = xenbus_dev_open,
        .release = xenbus_dev_release,
        .poll = xenbus_dev_poll,
+#ifdef HAVE_UNLOCKED_IOCTL
        .unlocked_ioctl = xenbus_dev_ioctl
+#endif
 };
 
 int xenbus_dev_init(void)