[PATCH] staging: sync: Add compat_ioctl handlers to sync drivers

From: John Stultz
Date: Fri Mar 29 2013 - 13:50:23 EST


From: Dmitry Pervushin <dmitry.pervushin@xxxxxxxxxx>

The sync drivers are missing compat_ioctl handlers, so this
patch adds them.

Cc: Erik Gilling <konkers@xxxxxxxxxxx>
Cc: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Dmitry Pervushin <dmitry.pervushin@xxxxxxxxxx>
Cc: Bernhard RosenkrÃnzer <Bernhard.Rosenkranzer@xxxxxxxxxx>
Cc: Android Kernel Team <kernel-team@xxxxxxxxxxx>
Signed-off-by: Dmitry Pervushin <dmitry.pervushin@xxxxxxxxxx>
Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>
---
This applies against staging-next.
The same change has been submitted to AOSP:
https://android-review.googlesource.com/#/c/54901/
Change-Id: If1a1ecc3952b321c8d64c6a8b050104859efc4b1

drivers/staging/android/sw_sync.c | 1 +
drivers/staging/android/sync.c | 1 +
2 files changed, 2 insertions(+)

diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c
index ec7de30..4928f93 100644
--- a/drivers/staging/android/sw_sync.c
+++ b/drivers/staging/android/sw_sync.c
@@ -239,6 +239,7 @@ static const struct file_operations sw_sync_fops = {
.open = sw_sync_open,
.release = sw_sync_release,
.unlocked_ioctl = sw_sync_ioctl,
+ .compat_ioctl = sw_sync_ioctl,
};

static struct miscdevice sw_sync_dev = {
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index bf66c19..3893a35 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -248,6 +248,7 @@ static const struct file_operations sync_fence_fops = {
.release = sync_fence_release,
.poll = sync_fence_poll,
.unlocked_ioctl = sync_fence_ioctl,
+ .compat_ioctl = sync_fence_ioctl,
};

static struct sync_fence *sync_fence_alloc(const char *name)
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/