From: Thierry Reding Date: Wed, 1 Nov 2017 14:20:04 +0000 (+0100) Subject: drm/fourcc: Fix fourcc_mod_code() definition X-Git-Tag: v4.16-rc1~96^2~7^2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5843f4e02fbe86a59981e35adc6cabebee46fdc0;p=thirdparty%2Fkernel%2Flinux.git drm/fourcc: Fix fourcc_mod_code() definition Avoid a compiler warnings when the val parameter is an expression. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 3ad838d3f93f3..a76ed8f9e383e 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -188,7 +188,7 @@ extern "C" { #define DRM_FORMAT_RESERVED ((1ULL << 56) - 1) #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: