On 16/01/2023 16:12, Vincenzo Frascino wrote:
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
It seems there's a word missing, s/compilation/compilation issue/ maybe? Same in patch 8.
Kevin
pointers (user_uintptr_t).
Note: The compat handler has been replaced with the relevant helper.
Signed-off-by: Vincenzo Frascino vincenzo.frascino@arm.com
drivers/media/cec/core/cec-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/cec/core/cec-api.c b/drivers/media/cec/core/cec-api.c index d72ad48c9898..aadf1ad8fd79 100644 --- a/drivers/media/cec/core/cec-api.c +++ b/drivers/media/cec/core/cec-api.c @@ -501,7 +501,7 @@ static long cec_s_mode(struct cec_adapter *adap, struct cec_fh *fh, return 0; } -static long cec_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) +static long cec_ioctl(struct file *filp, unsigned int cmd, user_uintptr_t arg) { struct cec_fh *fh = filp->private_data; struct cec_adapter *adap = fh->adap; @@ -706,7 +706,7 @@ const struct file_operations cec_devnode_fops = { .owner = THIS_MODULE, .open = cec_open, .unlocked_ioctl = cec_ioctl,
- .compat_ioctl = cec_ioctl,
- .compat_ioctl = compat_ptr_ioctl, .release = cec_release, .poll = cec_poll, .llseek = no_llseek,