Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c37b95ee authored by Dmitry Pervushin's avatar Dmitry Pervushin Committed by Greg Kroah-Hartman
Browse files

staging: sync: Add compat_ioctl handlers to sync drivers

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

The same change has been submitted to AOSP:
        https://android-review.googlesource.com/#/c/54901/


        Change-Id: If1a1ecc3952b321c8d64c6a8b050104859efc4b1

Cc: Erik Gilling <konkers@android.com>
Cc: Dmitry Pervushin <dmitry.pervushin@linaro.org>
Cc: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: default avatarDmitry Pervushin <dmitry.pervushin@linaro.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a48f88b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -239,6 +239,7 @@ static const struct file_operations sw_sync_fops = {
	.open = sw_sync_open,
	.open = sw_sync_open,
	.release = sw_sync_release,
	.release = sw_sync_release,
	.unlocked_ioctl = sw_sync_ioctl,
	.unlocked_ioctl = sw_sync_ioctl,
	.compat_ioctl = sw_sync_ioctl,
};
};


static struct miscdevice sw_sync_dev = {
static struct miscdevice sw_sync_dev = {
+1 −0
Original line number Original line Diff line number Diff line
@@ -248,6 +248,7 @@ static const struct file_operations sync_fence_fops = {
	.release = sync_fence_release,
	.release = sync_fence_release,
	.poll = sync_fence_poll,
	.poll = sync_fence_poll,
	.unlocked_ioctl = sync_fence_ioctl,
	.unlocked_ioctl = sync_fence_ioctl,
	.compat_ioctl = sync_fence_ioctl,
};
};


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