diff --git a/xpm/core/xpm_misc_device.c b/xpm/core/xpm_misc_device.c index b28937520d51d0c4fc293363d00033a4cd172555..7526ffa67fc3166e230b5a228af7dcdf52960359 100644 --- a/xpm/core/xpm_misc_device.c +++ b/xpm/core/xpm_misc_device.c @@ -110,6 +110,14 @@ static long xpm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return ret; } +#ifdef CONFIG_COMPAT +static long xpm_compat_ioctl(struct file *file, unsigned int cmd, + unsigned long arg) +{ + return 0; +} +#endif + static int xpm_open(struct inode *inode, struct file *file) { return 0; @@ -126,7 +134,7 @@ static const struct file_operations xpm_fops = { .release = xpm_release, .unlocked_ioctl = xpm_ioctl, #ifdef CONFIG_COMPAT - .compat_ioctl = xpm_ioctl, + .compat_ioctl = xpm_compat_ioctl, #endif };