summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mipsregs.h
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-01-02 21:53:15 +0300
committerJames Hogan <jhogan@kernel.org>2018-02-19 13:55:38 +0300
commitab3d8441290bcd648f487b69ea87cfe5b37d9e02 (patch)
tree18d1e74f8276386f4f4deda573fcfc46942beb74 /arch/mips/include/asm/mipsregs.h
parent427aeea072acd7afa6ffe20fc76f887b0f8b232c (diff)
downloadlinux-ab3d8441290bcd648f487b69ea87cfe5b37d9e02.tar.xz
MIPS: Remove a warning when PHYS_OFFSET is 0x0
Rewrite the comparison in `else if` statement, case where `min_low_pfn > ARCH_PFN_OFFSET` has already been checked in the first `if` statement: if (min_low_pfn > ARCH_PFN_OFFSET) { Fix non-fatal warning during compilation using W=1: arch/mips/kernel/setup.c: In function ‘bootmem_init’: arch/mips/kernel/setup.c:461:25: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] } else if (min_low_pfn < ARCH_PFN_OFFSET) { ^ Signed-off-by: Mathieu Malaterre <malat@debian.org> Reviewed-by: James Hogan <jhogan@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/18176/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'arch/mips/include/asm/mipsregs.h')
0 files changed, 0 insertions, 0 deletions