aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-09-10 17:18:32 +0000
committerMaxime Ripard <[email protected]>2020-09-11 09:30:20 +0000
commit4494346392204ab4387d08eb5e089be8e7e1b74e (patch)
tree0065c6d3ec29d168becc39c3b876709c3b2a97ad /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/vc4: Update type of reg parameter in vc4_hdmi_{read,write} (diff)
downloadkernel-4494346392204ab4387d08eb5e089be8e7e1b74e.tar.gz
kernel-4494346392204ab4387d08eb5e089be8e7e1b74e.zip
drm/vc4: Fix bitwise OR versus ternary operator in vc4_plane_mode_set
Clang warns: drivers/gpu/drm/vc4/vc4_plane.c:901:27: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] fb->format->has_alpha ? ~~~~~~~~~~~~~~~~~~~~~ ^ drivers/gpu/drm/vc4/vc4_plane.c:901:27: note: place parentheses around the '|' expression to silence this warning fb->format->has_alpha ? ~~~~~~~~~~~~~~~~~~~~~ ^ drivers/gpu/drm/vc4/vc4_plane.c:901:27: note: place parentheses around the '?:' expression to evaluate it first fb->format->has_alpha ? ~~~~~~~~~~~~~~~~~~~~~~^ 1 warning generated. Add the parentheses as that was clearly intended, otherwise SCALER5_CTL2_ALPHA_PREMULT won't be added to the list. Fixes: c54619b0bfb3 ("drm/vc4: Add support for the BCM2711 HVS5") Signed-off-by: Nathan Chancellor <[email protected]> Link: https://github.com/ClangBuiltLinux/linux/issues/1150 Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions