projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9428088
)
drm/fourcc: Fix fourcc_mod_code() definition
author
Thierry Reding
<treding@nvidia.com>
Wed, 1 Nov 2017 14:20:04 +0000
(15:20 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Wed, 13 Dec 2017 12:42:01 +0000
(13:42 +0100)
Avoid a compiler warnings when the val parameter is an expression.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/uapi/drm/drm_fourcc.h
patch
|
blob
|
blame
|
history
diff --git
a/include/uapi/drm/drm_fourcc.h
b/include/uapi/drm/drm_fourcc.h
index 3ad838d3f93f323b5a456dbd0f305687a5c786ab..a76ed8f9e383e444ba920671ba80a21bfd2bfecc 100644
(file)
--- 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: