Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4033584ybg; Fri, 25 Oct 2019 12:21:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhghbaA98jbQlRPCd+mSLM7/KZXmhZ6ngHzaK8oFdKNzR0SP556oUqG0RZOkjijxug8Ub7 X-Received: by 2002:a17:906:66d2:: with SMTP id k18mr5205767ejp.100.1572031312901; Fri, 25 Oct 2019 12:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031312; cv=none; d=google.com; s=arc-20160816; b=l1UUFgBzcOxPhW1mFGV+ADWiio6TPxuN5GVNblQQ6T+ZownH7vC8h43081eGtsztB6 VTweM9hBi/rK2/5xbQn2awJkwXgW/Htny1mfcz/68afpaRSvizxTAIvK6QW8tGkENYns 101uDAvjftZy0JkX0au2x8zAZ57hXsP8t0002PDUYp0uPdZQKtL4VRbS4p4hXdkg54mN PGhKZ8Gq9u0P/jr96ZVtaSEmM2JH2SbZ6MV96QDTsg6LhK94hW1ok7NKrmjJeHtxdDUy 6aDcLWL+VYt3FhjLOMij0v/Z1Oq/vjab/6WvanT1gQo2DiM2H+7MWB6hLdaAYrIzjVe2 4WgA== 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=m9WJ+KVxHLscf+nuM+iM8yj6LxyCqkwiB3fiqZsROoE=; b=cJbaV4DdYwm7KMa5Qz8r+UBf7ZsX7RZUS447LJ6z5FakiAJAIsYFvtL0zMYd86XN0Z GRb3IRPU5Q+/JAyKU3gvIr3bBmG+tqhpVhCZWxjhWlb+/ob9adHtGc7ID1SULy2IXAti hcDbjUu7T4FQslNg1ksZZMlmWWbGef35g/uFiudZVsD6pXBt3Oti2mvc8vHngwvdj5Ne A+3RTKFC/MrtbCgFxxnNYaNWoB0GdRZvZi+cxIaWBMJe2OIRkC7CAVB612nnMhQftEd8 FFVzaCqYDV4zS0aWneaXoJ+s3z1P2qgFJGAjXjbx5+QiTqIrbBS8sYIDedKKO5ueIBKn MCvQ== 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 f24si2061410edf.15.2019.10.25.12.21.29; Fri, 25 Oct 2019 12:21:52 -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 S2404116AbfJYDpt (ORCPT + 99 others); Thu, 24 Oct 2019 23:45:49 -0400 Received: from foss.arm.com ([217.140.110.172]:34442 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbfJYDps (ORCPT ); Thu, 24 Oct 2019 23:45:48 -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 B5D211FB; Thu, 24 Oct 2019 20:45:47 -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 A4C213F718; Thu, 24 Oct 2019 20:45: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: <1571625739-29943-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: Date: Fri, 25 Oct 2019 09:16:07 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/24/2019 10:21 PM, Qian Cai wrote: > > >> On Oct 24, 2019, at 10:50 AM, Anshuman Khandual wrote: >> >> Changes in V7: >> >> - Memory allocation and free routines for mapped pages have been droped >> - Mapped pfns are derived from standard kernel text symbol per Matthew >> - Moved debug_vm_pgtaable() after page_alloc_init_late() per Michal and Qian >> - Updated the commit message per Michal >> - Updated W=1 GCC warning problem on x86 per Qian Cai > > It would be interesting to know if you actually tested out to see if the warning went away. As far I can tell, the GCC is quite stubborn there, so I am not going to insist. > 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. The problem is, there is no other or better way to have both the conditional checks in place while also reducing the chances this warning. IMHO both the conditional checks are required.