With the introduction of capabilities, the PCuABI expects a capability when dealing with the user pointers.
Address a compilation using the proper type to represent user pointers (user_uintptr_t).
Signed-off-by: Vincenzo Frascino vincenzo.frascino@arm.com --- drivers/rtc/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/dev.c b/drivers/rtc/dev.c index 69325aeede1a..d2c075014c68 100644 --- a/drivers/rtc/dev.c +++ b/drivers/rtc/dev.c @@ -201,7 +201,7 @@ static __poll_t rtc_dev_poll(struct file *file, poll_table *wait) }
static long rtc_dev_ioctl(struct file *file, - unsigned int cmd, unsigned long arg) + unsigned int cmd, user_uintptr_t arg) { int err = 0; struct rtc_device *rtc = file->private_data; @@ -488,7 +488,7 @@ static long rtc_dev_compat_ioctl(struct file *file, return rtc_dev_ioctl(file, RTC_EPOCH_SET, arg); }
- return rtc_dev_ioctl(file, cmd, (unsigned long)uarg); + return rtc_dev_ioctl(file, cmd, (user_uintptr_t)uarg); } #endif