Skip to contentSkip to conversation

PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.

PATCH New KUWAMURA Shin'ya 1 participant 1 message May 22, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.

Hi,

Building PV-on-HVM drivers for RHEL4U2 failed:
/ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_dev.c:446: error: unknown field `unlocked_ioctl' specified in initializer

This patch fixes it.

Best regards,

Signature · 1 line
  KUWAMURA Shin'ya

# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]>
# Date 1242894400 -32400
# Node ID c4e22b5f3302e1403c0173b6236207ccf4669a34
# Parent bd7e30b58d125a64fc8388022a24f598068b95ec
PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.

drivers/xen/xenbus/xenbus_dev.c +4 -0
diff -r bd7e30b58d12 -r c4e22b5f3302 drivers/xen/xenbus/xenbus_dev.c
@@ -387,6 +387,7 @@ static unsigned int xenbus_dev_poll(stru
 	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
 
 	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 xenb
 	.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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel