From 6ea3ae3bb467a71226124244fcf60968d08b475c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 26 May 2009 09:53:55 +0100 Subject: [PATCH] PV-on-HVM: xenbus - check HAVE_UNLOCKED_IOCTL for old Linux kernels. Signed-off-by: KUWAMURA Shin'ya --- drivers/xen/xenbus/xenbus_dev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/xen/xenbus/xenbus_dev.c b/drivers/xen/xenbus/xenbus_dev.c index eee97792..52646f19 100644 --- a/drivers/xen/xenbus/xenbus_dev.c +++ b/drivers/xen/xenbus/xenbus_dev.c @@ -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) -- 2.39.5