PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.
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.
Signed-off-by KUWAMURA Shin'ya <[email protected]>
drivers/xen/xenbus/xenbus_dev.c +4 -0
@@ -387,6 +387,7 @@ static unsigned int xenbus_dev_poll(strureturn 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 filereturn 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