Skip to contentSkip to conversation

staging: sync: Add compat_ioctl handlers to sync drivers

PATCH New John Stultz 1 participant 1 message Mar 29, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sync: Add compat_ioctl handlers to sync drivers

From: Dmitry Pervushin <[email protected]>

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

Cc Erik Gilling <[email protected]>
Cc Greg KH <[email protected]>
Cc Dmitry Pervushin <[email protected]>
Cc Bernhard Rosenkränzer <[email protected]>
Cc Android Kernel Team <[email protected]>

---
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(+)
drivers/staging/android/sw_sync.c +1 -0
index ec7de30..4928f93 100644
@@ -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 = {
drivers/staging/android/sync.c +1 -0
index bf66c19..3893a35 100644
@@ -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)
Signature · 1 line
1.7.10.4