diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-14 18:51:26 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-02-19 14:56:20 +0100 |
commit | b3c4c79e16f13a72e8124f69453a37135329f968 (patch) | |
tree | 18c19b2f83ac1e7321be1ca52ed50f8fad89d17b | |
parent | e87a87925ea23e84ed6f67de73a5ef2713ca2c49 (diff) |
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>
-rw-r--r-- | include/drm/drm_fourcc.h | 2 |
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" { #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: |