mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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 <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3348602 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user