Skip to content

Commit

Permalink
drm/fourcc: 64 #defines need ULL postfix
Browse files Browse the repository at this point in the history
I have no idea about the exact rules, but this angered Dave's 32bit
rhel gcc.

Reported-by: Dave Airlie <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
  • Loading branch information
danvet committed Mar 17, 2015
1 parent c9f038a commit 8c4f83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/drm/drm_fourcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
/* add more to the end as needed */

#define fourcc_mod_code(vendor, val) \
((((u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffL))
((((u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL))

/*
* Format Modifier tokens:
Expand Down

0 comments on commit 8c4f83f

Please sign in to comment.