Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4037580ybg; Fri, 25 Oct 2019 12:25:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGvIbjkKGPotNmsRWy6uLPi5AoT0oQC12itGIVa5RHrQS4OmFRlto7mCObubf9T0A+SQTb X-Received: by 2002:a05:6402:b06:: with SMTP id bm6mr5880746edb.160.1572031507982; Fri, 25 Oct 2019 12:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031507; cv=none; d=google.com; s=arc-20160816; b=OnNHkbOdwfis03HoDSVO67wiooa8SQoIYEdq/hsz2nWG/+iJd+z5r8/91VldMU9poN U2eWLeb95BORvofgTkZXm5cxlmrF4dE9itoCG/nyImkN3unPaBHWtKs9MC/q0w6zkeO5 i0oxP/mJJY97ATkUjUEnh3Z54AEJFSUd0/NSWr4pT6IHsyKLTOxokoaAET3MIu7mz4Te GATx/sUi2fySTO7h4zCRaxlM4hN3VRfBChxEUeEAmZeiGEtC4mHtzQCfXOOHQyPSkmk4 nmrVnLu9I/7YhM23P6tLIJU6vlBrJP79FInLJ+m/M1GrgrwGWRNJye6vEDk79tKwcQto JRRg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+It5sSl1rAHehgnQ7KFUcnKm7ce/o84VlvrtRHSdBGM=; b=RQUTfMMsjfsi8lMU4ERz2KivfbJwsGDUXzbKkzC7Bmpr03DuBrk8iwM1+cpe6o1egY G6AnIPCCTbi5QXL6BPlT9w26vA7K2arDlsW5tgS3FtsN/RrFFb+IC5pIP3UvbhGUCVTZ 29e0SNV89JcI0tDWcNuFMxwwvkh4Uunclg7WUBP2zmpsfBKd9pESHOC926M/z93gvRd5 gE4PZkF3O6IZKzJI0u1opSbPC6jpYNAe16ZcCuUtP8YMnCH4iW4awGeyhmbxmBBkZRmd FgfTEjogY9jgXC8MMjYLybZrMcsmYc0l/UTYByVvT60QnjmJNN98WkjHszZZiqDQB7d9 9YKg== ARC-Authentication-Results: i=1; mx.google.com; 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 m1si1836735ejx.188.2019.10.25.12.24.45; Fri, 25 Oct 2019 12:25:07 -0700 (PDT) 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; 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 S2405001AbfJYGfA (ORCPT + 99 others); Fri, 25 Oct 2019 02:35:00 -0400 Received: from foss.arm.com ([217.140.110.172]:35572 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388289AbfJYGfA (ORCPT ); Fri, 25 Oct 2019 02:35:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB71328; Thu, 24 Oct 2019 23:34:58 -0700 (PDT) Received: from [10.162.41.137] (p8cg001049571a15.blr.arm.com [10.162.41.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2DD333F718; Thu, 24 Oct 2019 23:37:36 -0700 (PDT) Subject: Re: [PATCH V7] mm/debug: Add tests validating architecture page table helpers To: Qian Cai Cc: linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Michal Hocko , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Gerald Schaefer , Christophe Leroy , Mike Kravetz , Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org References: <69256008-2235-4AF1-A3BA-0146C82CCB93@lca.pw> From: Anshuman Khandual Message-ID: <5ce5a76c-ea89-c2a1-6665-7d75bce5fb87@arm.com> Date: Fri, 25 Oct 2019 12:05:18 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <69256008-2235-4AF1-A3BA-0146C82CCB93@lca.pw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/25/2019 11:22 AM, Qian Cai wrote: > > >> On Oct 24, 2019, at 11:45 PM, Anshuman Khandual wrote: >> >> Nothing specific. But just tested this with x86 defconfig with relevant configs >> which are required for this test. Not sure if it involved W=1. > > No, it will not. It needs to run like, > > make W=1 -j 64 2>/tmp/warns Ahh, so we explicitly ask for it. Unfortunately compiler still flags it as an warning. Just wondering why this is still a problem if the second condition for an OR expression is always false. Because evaluation still needs to be performed for the first condition anyways, before arriving at the result. DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC mm/debug_vm_pgtable.o In file included from ./arch/x86/include/asm/bug.h:83:0, from ./include/linux/bug.h:5, from ./include/linux/mmdebug.h:5, from ./include/linux/gfp.h:5, from mm/debug_vm_pgtable.c:13: mm/debug_vm_pgtable.c: In function ‘get_random_vaddr’: mm/debug_vm_pgtable.c:314:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] (random_vaddr < FIRST_USER_ADDRESS)); ^ ./include/asm-generic/bug.h:113:25: note: in definition of macro ‘WARN_ON’ int __ret_warn_on = !!(condition); \ ^~~~~~~~~ As you mentioned GCC is quite stubborn here. Anyways, lets keep it unchanged.