aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding2017-11-14 11:51:26 -0600
committerThierry Reding2018-02-19 07:56:20 -0600
commitb3c4c79e16f13a72e8124f69453a37135329f968 (patch)
tree18c19b2f83ac1e7321be1ca52ed50f8fad89d17b /include
parente87a87925ea23e84ed6f67de73a5ef2713ca2c49 (diff)
downloadexternal-libgbm-b3c4c79e16f13a72e8124f69453a37135329f968.tar.gz
external-libgbm-b3c4c79e16f13a72e8124f69453a37135329f968.tar.xz
external-libgbm-b3c4c79e16f13a72e8124f69453a37135329f968.zip
drm/fourcc: Fix fourcc_mod_code() definition
Avoid compiler warnings when the val parameter is an expression. This is based on commit 5843f4e02fbe86a59981e35adc6cabebee46fdc0 from Linux v4.16-rc1. Acked-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_fourcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h
index 3ad838d3..a76ed8f9 100644
--- a/include/drm/drm_fourcc.h
+++ b/include/drm/drm_fourcc.h
@@ -188,7 +188,7 @@ extern "C" {
188#define DRM_FORMAT_RESERVED ((1ULL << 56) - 1) 188#define DRM_FORMAT_RESERVED ((1ULL << 56) - 1)
189 189
190#define fourcc_mod_code(vendor, val) \ 190#define fourcc_mod_code(vendor, val) \
191 ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL)) 191 ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL))
192 192
193/* 193/*
194 * Format Modifier tokens: 194 * Format Modifier tokens: