diff options
author | Arnd Bergmann | 2019-06-17 14:41:33 +0200 |
---|---|---|
committer | Oded Gabbay | 2019-06-20 11:13:19 +0200 |
commit | f99bc332c713b7672bad5236060b02f0c41c7242 (patch) | |
tree | 0febffe47a36cfacfa965f8d26acffb0caf6d2b5 /drivers/media/platform/omap3isp/isp.h | |
parent | doc: fix documentation about UIO_MEM_LOGICAL using (diff) | |
download | kernel-qcow2-linux-f99bc332c713b7672bad5236060b02f0c41c7242.tar.gz kernel-qcow2-linux-f99bc332c713b7672bad5236060b02f0c41c7242.tar.xz kernel-qcow2-linux-f99bc332c713b7672bad5236060b02f0c41c7242.zip |
habanalabs: use u64_to_user_ptr() for reading user pointers
We cannot cast a 64-bit integer to a pointer on 32-bit architectures
without a warning:
drivers/misc/habanalabs/habanalabs_ioctl.c: In function 'debug_coresight':
drivers/misc/habanalabs/habanalabs_ioctl.c:143:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
input = memdup_user((const void __user *) args->input_ptr,
Use the macro that was defined for this purpose.
Fixes: 315bc055ed56 ("habanalabs: add new IOCTL for debug, tracing and profiling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/isp.h')
0 files changed, 0 insertions, 0 deletions