linux/drivers/gpu/drm/msm/dsi
Nathan Chancellor 01a090c746 drm/msm/dsi: Add parentheses to quirks check in dsi_phy_hw_v3_0_lane_settings
Clang warns:

drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: warning: logical not is
only applied to the left hand side of this bitwise operator
[-Wlogical-not-parentheses]
        if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) {
            ^                 ~
drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses
after the '!' to evaluate the bitwise operator first
        if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) {
            ^
             (                                               )
drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c:80:6: note: add parentheses
around left hand side expression to silence this warning
        if (!phy->cfg->quirks & V3_0_0_10NM_OLD_TIMINGS_QUIRK) {
            ^
            (                )
1 warning generated.

Add parentheses around the bitwise AND so it is evaluated first then
negated.

Fixes: 3dbbf8f09e ("drm/msm/dsi: Add old timings quirk for 10nm phy")
Link: https://github.com/ClangBuiltLinux/linux/issues/547
Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
2019-06-19 12:30:55 -07:00
..
phy drm/msm/dsi: Add parentheses to quirks check in dsi_phy_hw_v3_0_lane_settings 2019-06-19 12:30:55 -07:00
pll drm pull request for 4.21-rc1 2018-12-25 11:48:26 -08:00
dsi_cfg.c drm/msm/dsi: Add support for MSM8998 DSI controller 2019-06-18 13:56:43 -07:00
dsi_cfg.h drm/msm/dsi: Add support for MSM8998 DSI controller 2019-06-18 13:56:43 -07:00
dsi_host.c drm/msm: check for equals 0 only 2019-06-18 11:28:14 -07:00
dsi_manager.c drm/msm/dsi: add protection against NULL dsi device 2019-06-18 14:02:26 -07:00
dsi.c drm: msm: Use DRM_DEV_* instead of dev_* 2018-12-11 13:05:22 -05:00
dsi.h drm: bridge: Constify mode arguments to bridge .mode_set() operation 2019-01-14 03:51:14 +02:00
dsi.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
mmss_cc.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
sfpb.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00