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 --- include/sound/info.h | 2 +- sound/core/info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/sound/info.h b/include/sound/info.h index 7c13bf52cc81..b1853b950467 100644 --- a/include/sound/info.h +++ b/include/sound/info.h @@ -51,7 +51,7 @@ struct snd_info_entry_ops { void *file_private_data, struct file *file, poll_table *wait); int (*ioctl)(struct snd_info_entry *entry, void *file_private_data, - struct file *file, unsigned int cmd, unsigned long arg); + struct file *file, unsigned int cmd, user_uintptr_t arg); int (*mmap)(struct snd_info_entry *entry, void *file_private_data, struct inode *inode, struct file *file, struct vm_area_struct *vma); diff --git a/sound/core/info.c b/sound/core/info.c index 0b2f04dcb589..f1c579137d53 100644 --- a/sound/core/info.c +++ b/sound/core/info.c @@ -205,7 +205,7 @@ static __poll_t snd_info_entry_poll(struct file *file, poll_table *wait) }
static long snd_info_entry_ioctl(struct file *file, unsigned int cmd, - unsigned long arg) + user_uintptr_t arg) { struct snd_info_private_data *data = file->private_data; struct snd_info_entry *entry = data->entry;