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:
parent
d062c8ead0
commit
bc474ffea6
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue