diff options
author | Robert Foss <robert.foss@collabora.com> | 2017-01-02 05:25:55 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 10:45:20 +0000 |
commit | 0517d877b65bade23332cba0828acae7ae5fccb9 (patch) | |
tree | 2ef47a5f686eb6b930df3274417b11ebff1106e0 /lib | |
parent | 091a452489ac184bbc4d0d23ce6a255abc0f4631 (diff) |
lib/ioctl_wrappers.h: Fix to_user_pointer() helper
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ioctl_wrappers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index 2ac57f47..f9507ad0 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -245,9 +245,9 @@ int __kms_addfb(int fd, uint32_t handle, uint32_t width, uint32_t height, * Makes sure that pointer on 32 and 64-bit systems * are casted properly for being sent through an ioctl. */ -inline uint64_t to_user_pointer(void *ptr) +static inline uint64_t to_user_pointer(const void *ptr) { - return (uint64_t)(uintptr_t) ptr; + return (uintptr_t)ptr; } #endif /* IOCTL_WRAPPERS_H */ |