Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbeABSze (ORCPT + 1 other); Tue, 2 Jan 2018 13:55:34 -0500 Received: from mail-ua0-f196.google.com ([209.85.217.196]:37357 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbeABSzd (ORCPT ); Tue, 2 Jan 2018 13:55:33 -0500 X-Google-Smtp-Source: ACJfBotqqYtZoAzwvtA7iVK40o1IjC2f4RU2iXXC8mvUaxA1R8j/BiCFQZYoXbtyyFwxyv4wbBBvJpLyNowthbsOfE0= MIME-Version: 1.0 In-Reply-To: <20180102093127.GM5027@jhogan-linux.mipstec.com> References: <20171226113717.15074-1-malat@debian.org> <20171226113717.15074-2-malat@debian.org> <20180102093127.GM5027@jhogan-linux.mipstec.com> From: Mathieu Malaterre Date: Tue, 2 Jan 2018 19:55:11 +0100 X-Google-Sender-Auth: UbWEhII2zPm3BpNY8_AKW9na-gc Message-ID: Subject: Re: [PATCH 2/2] MIPS: Remove a warning when PHYS_OFFSET is 0x0 To: James Hogan Cc: Ralf Baechle , Marcin Nowakowski , Miodrag Dinic , Aleksandar Markovic , David Daney , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi James, On Tue, Jan 2, 2018 at 10:31 AM, James Hogan wrote: > On Tue, Dec 26, 2017 at 12:37:14PM +0100, Mathieu Malaterre wrote: >> 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: >> >> 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) { >> ^ > > What compiler version is that with out of interest? It isn't exactly new > code. I've clarified in v2, that this happen during compilation using W=1 For reference: $ mipsel-linux-gnu-gcc -dumpversion 6.3.0 >> >> Signed-off-by: Mathieu Malaterre > > Reviewed-by: James Hogan Thanks !