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 --- arch/x86/kernel/cpu/mtrr/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kernel/cpu/mtrr/if.c index a5c506f6da7f..4ffce21448fc 100644 --- a/arch/x86/kernel/cpu/mtrr/if.c +++ b/arch/x86/kernel/cpu/mtrr/if.c @@ -152,7 +152,7 @@ mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos) }
static long -mtrr_ioctl(struct file *file, unsigned int cmd, unsigned long __arg) +mtrr_ioctl(struct file *file, unsigned int cmd, user_uintptr_t __arg) { int err = 0; mtrr_type type;