rpmsg: Add compat ioctl for rpmsg char driver
authorArun Kumar Neelakantam <aneela@codeaurora.org>
Fri, 27 Jul 2018 12:17:29 +0000 (17:47 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 31 Jul 2018 06:40:23 +0000 (23:40 -0700)
Add compat ioctl callback to support 32bit user space applications.

Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/rpmsg_char.c

index 76a4477..a76b963 100644 (file)
@@ -285,6 +285,7 @@ static const struct file_operations rpmsg_eptdev_fops = {
        .write = rpmsg_eptdev_write,
        .poll = rpmsg_eptdev_poll,
        .unlocked_ioctl = rpmsg_eptdev_ioctl,
+       .compat_ioctl = rpmsg_eptdev_ioctl,
 };
 
 static ssize_t name_show(struct device *dev, struct device_attribute *attr,
@@ -445,6 +446,7 @@ static const struct file_operations rpmsg_ctrldev_fops = {
        .open = rpmsg_ctrldev_open,
        .release = rpmsg_ctrldev_release,
        .unlocked_ioctl = rpmsg_ctrldev_ioctl,
+       .compat_ioctl = rpmsg_ctrldev_ioctl,
 };
 
 static void rpmsg_ctrldev_release_device(struct device *dev)