Skip to content

-Wtautological-compare in arch/mips around __dtb_{start,end} #1232

@nathanchance

Description

@nathanchance

When building xway_defconfig:

arch/mips/lantiq/prom.c:82:23: error: array comparison always evaluates to true [-Werror,-Wtautological-compare]
        else if (__dtb_start != __dtb_end)
                             ^
1 error generated.

rg __dtb_start arch/mips shows a few instances of this. I sent a patch to fix them all: https://lore.kernel.org/r/20210105201827.51766-1-natechancellor@gmail.com

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions