mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
sdm632: cirrus-playback: filter ioctl compat
There are other programs in DLKM kernel which don't define IOCTL_COMPAT. This is not to include compat ioctl on those. Change-Id: Ie463dd624febb6b0db9319634991a36f533b1f10 Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com> Reviewed-on: https://gerrit.mot.com/1220802 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yin-Jun Chen <a7301c@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
f20a95ede9
commit
21b27604d3
1 changed files with 4 additions and 0 deletions
|
|
@ -831,6 +831,7 @@ static long crus_se_ioctl(struct file *f,
|
|||
return crus_se_shared_ioctl(f, cmd, (void __user *)arg);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
static long crus_se_compat_ioctl(struct file *f,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
|
|
@ -852,6 +853,9 @@ static long crus_se_compat_ioctl(struct file *f,
|
|||
|
||||
return crus_se_shared_ioctl(f, cmd64, compat_ptr(arg));
|
||||
}
|
||||
#else
|
||||
#define crus_se_compat_ioctl NULL
|
||||
#endif
|
||||
|
||||
static int crus_se_open(struct inode *inode, struct file *f)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue