WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for ol

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels.
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 22 May 2009 14:32:38 +0900 (JST)
Delivery-date: Thu, 21 May 2009 22:34:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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,
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# 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 <kuwa@xxxxxxxxxxxxxx>

diff -r bd7e30b58d12 -r c4e22b5f3302 drivers/xen/xenbus/xenbus_dev.c
--- a/drivers/xen/xenbus/xenbus_dev.c   Tue May 19 14:45:50 2009 +0100
+++ b/drivers/xen/xenbus/xenbus_dev.c   Thu May 21 17:26:40 2009 +0900
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels., KUWAMURA Shin'ya <=