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:
Yoon (Seungyoon) Lee 2018-08-03 10:47:06 -05:00 • committed by Seungyoon Lee
commit 21b27604d3

View file

@ -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)
{