Received: by 10.223.185.116 with SMTP id b49csp511015wrg; Wed, 14 Feb 2018 02:37:13 -0800 (PST) X-Google-Smtp-Source: AH8x227hJY6pNYrHAEIyZdutLKmDDuSXTFrYgISVUoGrQsFmyOekxHRgsp0aoydXXdYb/GpgDMFh X-Received: by 10.99.97.9 with SMTP id v9mr3502589pgb.373.1518604633311; Wed, 14 Feb 2018 02:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518604633; cv=none; d=google.com; s=arc-20160816; b=bZN110++kGCsNQczV7Z4T+DmEMPNpcjl9zU2Tl0SNQb437U7NKiIMJ2vODxtr3Zr9G G5mweLJm0MPdz4cuL7YQdlDmHPMToCOB6/9OyKqGmBaclUVq/h0ex+TMJkswf0Tg1XWQ DtgrXwELY56VCBwps+cxPP1C6Gxg8ll362q/lCnDTmuGqJSTP0VtqnnlAojcfWnVxTn6 GC6ZqW9anuBowBDhxc7/bQkTXYIP4JjJnUbT02YDgTO7kul2etc28Oren7j9Vk6h8xon BLRupsq/NwKC/sDkzuK9bpgLGiPQIM0OgGEMgXjjYvDU00W3m4DBqEmVVaWgQmO1EYbS gMWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=3swUwf5DOs6xEu0I8RBkfrNNgO6fI7mHnJDCd21Q/cs=; b=zgtgD1PwFGwgbxsuVD+qBNekk+1XLqgCXDydFJ7WhwvYuvTIypiXKyFw4u6Mak5hyf ifvdmPLr2mzlDkbLmrBc5BcTbYHt2Awlj6V5//R5FP3PagQy+ldzxpyRxq9+9Qotzf49 D0JiBgW/gXyMTBtmAc8dRoxM4uNSEvRz9FWzcjvhmNVoe2UnCQp/dq2lJVWwCdtD9CXH r+poJMpE6EFmW7P/1f1/SIpNskvMiSRjxHC68lX+VVUR3pOF8PjVorNPcFavIhkykVCZ qZRd5CdA/2PbhLesDL3n9zhaBfQZafXECaFlRbq6bFKyy5UMWQygqnk3aswTBLDdxc0s +TLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GLsGBcgV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si5980980pgn.813.2018.02.14.02.36.58; Wed, 14 Feb 2018 02:37:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GLsGBcgV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967225AbeBNKgG (ORCPT + 99 others); Wed, 14 Feb 2018 05:36:06 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:45646 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966971AbeBNKgF (ORCPT ); Wed, 14 Feb 2018 05:36:05 -0500 Received: by mail-ua0-f193.google.com with SMTP id z3so13357709uae.12 for ; Wed, 14 Feb 2018 02:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=3swUwf5DOs6xEu0I8RBkfrNNgO6fI7mHnJDCd21Q/cs=; b=GLsGBcgVD5lnkFn3ev6MYrM3023RuDb7ng8h8exkqyoyMB0WFALeJvEghm/MkF+1Uy p8Osl6+wpVLtOOtQVbdqfuHBI6tRusduuVh4QRltmmS4j5y3/wvhS/W9Z8cvb/Z0orSi NUtzyMRwf1kyaqsDj8+2coVmtWjiJfZLQdpWeC/dj1wCHbiN4dVYO5ndCmSAqLeWqhcb DbPQPRjdPPuhdPA1xnsXrYuRIMa8A2WSkSkiaKYnnL3VI0Sq3Dap7giGxTLenweyBefR 0YmZsYh1Zd7G/GvxJ1jZuLubauKB2D1Mla2HK92Bp7Xvpj5qIo1yRKg80NsSZJ/S+T1O oWBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=3swUwf5DOs6xEu0I8RBkfrNNgO6fI7mHnJDCd21Q/cs=; b=VAGmjCBW/sSQNIjedqEr2hTwk8MJiQwr6MvsKNjaDVwhpaK5qOS8v8IvSeJ+7p9mXo uHNK+9cPJ5a8KME+qCvOvw8wcsHdszI8hj6o6CTcyqbrJtweXsrGs4XiK0KLLvPg6DMt 0Jw+rDb92hHcOFmSS50W+05pdrW4tbkb41nKbuxghPW3s1JXCsj5YZUIeK/y7oMo3+EF qt23anvG/QPeltRf0K8upfVrXFZKeMC4XppYnCnX76WIs2nzkpvYD8T4FUyyMwx3DUFH aWUVFmv9C8scQnSlrJ+DvDQUJpHIY6NwdliD1DNvUchAMY1yEepWzviUWSX6RHH+IuNe R/Vw== X-Gm-Message-State: APf1xPDKGCHEBPlMwLojptk0XV0Qgu/1WN8dzpqvZ7byDyszREpgqjwA jbqbSMOU8oiNkY1KBqKEsEgELkdRaqTOl5+yoLM= X-Received: by 10.159.49.135 with SMTP id v7mr4080413uad.17.1518604564439; Wed, 14 Feb 2018 02:36:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.38.193 with HTTP; Wed, 14 Feb 2018 02:35:44 -0800 (PST) In-Reply-To: References: <20171226113717.15074-1-malat@debian.org> <20171226113717.15074-2-malat@debian.org> <20180102093127.GM5027@jhogan-linux.mipstec.com> From: Mathieu Malaterre Date: Wed, 14 Feb 2018 11:35:44 +0100 X-Google-Sender-Auth: aQ_nYBWzh3QMmr9LnMwDDCLL_5U 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, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 2, 2018 at 7:55 PM, Mathieu Malaterre wrote: > 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 =E2=80=98bootmem_init=E2=80=99: >>> arch/mips/kernel/setup.c:461:25: warning: comparison of unsigned expres= sion < 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=3D1 > > For reference: > > $ mipsel-linux-gnu-gcc -dumpversion > 6.3.0 > > >>> >>> Signed-off-by: Mathieu Malaterre >> >> Reviewed-by: James Hogan > > Thanks ! ping ? https://patchwork.linux-mips.org/project/linux-mips/list/?series=3D623