drivers: qseecom: Define .compat_ioctl based on CONFIG_COMPAT
Attach compat_qseecom_ioctl function to .compat_ioctl when CONFIG_COMPAT is defined. Change-Id: I7734c8d9273c2f71c74aaa8e8030d3231ca910f5 Signed-off-by: Ujjawal Sankhwar <quic_usankhwa@quicinc.com>
This commit is contained in:
parent
29c604bd73
commit
2298754732
@ -8509,7 +8509,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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user