libdrm: Use userspace compatible type in fourcc_mod_code macro
Subsystems (2)
PATCH 1/1 libdrm: Use userspace compatible type in fourcc_mod_code macro
From: Tvrtko Ursulin <[email protected]>
__u64 should be used instead of u64.
Kernel headers originally pulled in:
commit 8983fe5497e89a3ffaba3ad1ee06a30a1c7e6daf
Author: Tvrtko Ursulin <[email protected]> Date: Mon Aug 3 10:48:03 2015 +0100
libdrm: Add framebuffer modifiers uapi
Signed-off-by Tvrtko Ursulin <[email protected]>
Cc Rob Clark <[email protected]>
Cc Daniel Vetter <[email protected]>
--- include/drm/drm_fourcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_fourcc.h +1 -1
@@ -149,7 +149,7 @@/* add more to the end as needed */ #define fourcc_mod_code (vendor, val) \ - ((((u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL)) + ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL))/* * Format Modifier tokens:
Signature · 6 lines
2.5.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx