From 21b27604d36bb3f198dcdc18c956566f1ff2af75 Mon Sep 17 00:00:00 2001 From: "Yoon (Seungyoon) Lee" Date: Fri, 3 Aug 2018 10:47:06 -0500 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1220802 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yin-Jun Chen Tested-by: Jira Key Submit-Approved: Jira Key --- sound/soc/codecs/msm-cirrus-playback.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/msm-cirrus-playback.c b/sound/soc/codecs/msm-cirrus-playback.c index 7f6a4f8bb0b7..bfaf5c84b7d2 100644 --- a/sound/soc/codecs/msm-cirrus-playback.c +++ b/sound/soc/codecs/msm-cirrus-playback.c @@ -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) {