The function pointer proc_ops.proc_ioctl requires the use of user_uintptr_t type as argument.
Signed-off-by: Pawel Zalewski pzalewski@thegoodpenguin.co.uk --- drivers/hwmon/dell-smm-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 1572b5416015..a83980aff963 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -432,7 +432,7 @@ static int i8k_get_power_status(void) * Procfs interface */
-static long i8k_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) +static long i8k_ioctl(struct file *fp, unsigned int cmd, user_uintptr_t arg) { struct dell_smm_data *data = pde_data(file_inode(fp)); int __user *argp = (int __user *)arg;