forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
-Wtautological-compare-Wtautological-pointer-compare[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.7This bug was fixed in Linux 5.7This bug was fixed in Linux 5.7
Description
Seeing this on Linux v5.6.3 with kbuild: Enable -Wtautological-compare applied (using clang-10/ld.lld-10 from Debian/unstable):
arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (downed_cpus == NULL &&
^~~~~~~~~~~ ~~~~
arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0)
^~~~~~~~~~~ ~~~~
2 warnings generated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
-Wtautological-compare-Wtautological-pointer-compare[BUG] linuxA bug that should be fixed in the mainline kernel.A bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.7This bug was fixed in Linux 5.7This bug was fixed in Linux 5.7