soc: qcom: hab: add compat_ioctl support

This is used to allow 32-bit userland programs to make ioctl
calls on 64-bit kernel.

Change-Id: Ie5066a3445c79859fc0b509159b34ff08d36358a
Signed-off-by: Yong Ding <yongding@codeaurora.org>
This commit is contained in:
Yong Ding 2018-01-16 15:32:37 +08:00 committed by Gerrit - the friendly Code Review server
parent d062c8ead0
commit bc474ffea6

View file

@ -867,12 +867,19 @@ static long hab_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
return ret;
}
static long hab_compat_ioctl(struct file *filep, unsigned int cmd,
unsigned long arg)
{
return hab_ioctl(filep, cmd, arg);
}
static const struct file_operations hab_fops = {
.owner = THIS_MODULE,
.open = hab_open,
.release = hab_release,
.mmap = habmem_imp_hyp_mmap,
.unlocked_ioctl = hab_ioctl
.unlocked_ioctl = hab_ioctl,
.compat_ioctl = hab_compat_ioctl
};
/*