Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1c4db56c authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Changes to accommodate 32-bit Arch



This driver is using uint64_t to store pointers. On 64 bit uint64_t
and pointer is of the same size, but on the 32 bit system pointers are
smaller. Casting uint64_t to pointer generates warning on 32 bit
platforms.
Fix this by storing pointers as uintptr_t.

On a 32 bit system, pointer size is 32 bits, but userspace is passing
uint64_t value. Casting uint64_t to pointer generates a compilation
warning.
Fix this by first casting uint64_t to uintptr_t then to void ptr.

Change-Id: I4e518288c2835a074e0dfb2dc2c1d1c6e9de55c0
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: default avatarSridhar Gujje <sgujje@codeaurora.org>
parent edaf1f1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment