From c85efbe2a72226431f21a15ac036457cb0438128 Mon Sep 17 00:00:00 2001 From: Ketan Patil Date: Thu, 24 Apr 2025 08:50:09 +0000 Subject: [PATCH] video: tegra: nvmap: Change data type of addr to u64 In android ATV build, userspace is 32 bit while kernel is 64 bit. Hence value of NVMAP_IOC_CACHE differs on userspace and kernel space side, as we are using unsigned long data type for addr field. The unsigned long resolves to 32 bit in userspace while 64 bit in kernel space. Use u64 data type which will always resolves to 64 bit. Bug 5111364 Change-Id: I392146e71f7d65ba047ee2dda0d69dd202370968 Signed-off-by: Ketan Patil Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3348602 GVS: buildbot_gerritrpt Reviewed-by: Pritesh Raithatha --- include/uapi/linux/nvmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/nvmap.h b/include/uapi/linux/nvmap.h index e5267257..3d80980f 100644 --- a/include/uapi/linux/nvmap.h +++ b/include/uapi/linux/nvmap.h @@ -147,14 +147,14 @@ struct nvmap_handle_param_32 { #endif /* __KERNEL__ */ struct nvmap_cache_op { - unsigned long addr; /* user pointer*/ + __u64 addr; /* user pointer*/ __u32 handle; /* nvmap handle */ __u32 len; /* bytes to flush */ __s32 op; /* wb/wb_inv/inv */ }; struct nvmap_cache_op_64 { - unsigned long addr; /* user pointer*/ + __u64 addr; /* user pointer*/ __u32 handle; /* nvmap handle */ __u64 len; /* bytes to flush */ __s32 op; /* wb/wb_inv/inv */