Thanks to visit codestin.com
Credit goes to github.com

Skip to content

-Wbitwise-instead-of-logical in drivers/gpu/drm/i915/intel_pm.c #1473

@nickdesaulniers

Description

@nickdesaulniers

mainline x86 defconfig plus CONFIG_FORTIFY_SOURCE=y

drivers/gpu/drm/i915/intel_pm.c:3054:12: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
        changed = ilk_increase_wm_latency(dev_priv, dev_priv->wm.pri_latency, 12) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:3054:12: note: cast one or both operands to int to silence this warning
drivers/gpu/drm/i915/intel_pm.c:3054:12: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
        changed = ilk_increase_wm_latency(dev_priv, dev_priv->wm.pri_latency, 12) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                  ||
drivers/gpu/drm/i915/intel_pm.c:3054:12: note: cast one or both operands to int to silence this warning

Metadata

Metadata

Assignees

Labels

-Wbitwise-instead-of-logicalCONFIG_WERRORHas in an error with CONFIG_WERROR (all{mod,yes}config) (or emits a non-compiler warning)Clean buildIssue needs to be fixed to get a warning-free all*config build[ARCH] x86_64This bug impacts ARCH=x86_64[BUG] linuxA bug that should be fixed in the mainline kernel.[CONFIG] allmodconfigIssue affects allmodconfig on certain architectures[FIXED][LINUX] 5.17This bug was fixed in Linux 5.17

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions