From: "KUWAMURA Shin'ya" Subject: [PATCH] PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels. Date: Fri, 22 May 2009 14:32:38 +0900 (JST) Message-ID: <20090522.143238.233420966.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_May_22_14_32_38_2009_124)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Fri_May_22_14_32_38_2009_124)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ----Next_Part(Fri_May_22_14_32_38_2009_124)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="check-unlocked_ioctl.patch" # HG changeset patch # User KUWAMURA Shin'ya # 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 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) ----Next_Part(Fri_May_22_14_32_38_2009_124)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Fri_May_22_14_32_38_2009_124)----