qseecom: add CONFIG_COMPAT condition

Compile compat_qseecom_ioctl only if
CONFIG_COMPAT is enabled.

Change-Id: I334b0bccdaa30815ea17becdc086aa590d517f75
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
This commit is contained in:
Anmolpreet Kaur 2020-12-09 02:19:35 +05:30
commit 810db21f77

View file

@ -8426,7 +8426,9 @@ static int qseecom_release(struct inode *inode, struct file *file)
static const struct file_operations qseecom_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = qseecom_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = compat_qseecom_ioctl,
#endif
.open = qseecom_open,
.release = qseecom_release
};