Skip to content

-Wbitwise-instead-of-logical in drivers/soc/tegra/fuse/speedo-tegra20.c #1488

@nathanchance

Description

@nathanchance
drivers/soc/tegra/fuse/speedo-tegra20.c:72:9: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
                reg = tegra_fuse_read_spare(i) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                               ||
drivers/soc/tegra/fuse/speedo-tegra20.c:72:9: note: cast one or both operands to int to silence this warning
drivers/soc/tegra/fuse/speedo-tegra20.c:87:9: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
                reg = tegra_fuse_read_spare(i) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                               ||
drivers/soc/tegra/fuse/speedo-tegra20.c:87:9: note: cast one or both operands to int to silence this warning
2 warnings generated.

Patch submitted: https://lore.kernel.org/r/20211021214500.2388146-1-nathan@kernel.org/

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] arm32This bug impacts ARCH=arm[BUG] linuxA bug that should be fixed in the mainline kernel.[CONFIG] allmodconfigIssue affects allmodconfig on certain architectures[FIXED][LINUX] 5.16This bug was fixed in Linux 5.16

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions