Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4980085pxv; Tue, 20 Jul 2021 16:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbh8uqyHUd84Fuo5sJO7eA9QA3y5lw49PFcOifcoHQnnrZ7mEfEH3oXDs8jbgX7BmlHSFD X-Received: by 2002:a6b:ec0d:: with SMTP id c13mr9881752ioh.108.1626822626626; Tue, 20 Jul 2021 16:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626822626; cv=none; d=google.com; s=arc-20160816; b=tYpv0pXAcEzY1MKzzQe7PRCx2Dyholofs8ZPjlcpN9YO8MofrEXETAIeeKvQjNUERv Nx2GmoV0ibuUqJMVCbpbn6/qeVzEUAXyV8ef2s9nKlE6ZVmWjJfK2drDx0vSNNpO7F5i iM7yMFzvJIDRH6w13d/YC+0M1rJIVVJpKfrFx8aivooizOF0BhjB4FxMYH2BfwIuzJvi dLQvIV/KDAVFRPpPEd5nNZiimpsraanBuUHyLoue+7WZ5V+AciwY+Z5WE9eAupysskZQ EKTA2mBISUxlWhu1W2N6M4NoALOx0TeemsN7A+GjWzhBX4Gim0ritEKBe29L113NSJNU ++xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:reply-to:dkim-signature; bh=OUD1OSZkbHdMiWproUmhkia/gxOQdMwBwJdJdItumaQ=; b=aly+ESsQ9W9weWd31XLMCklSPlezuDwX64rHl+IWcaLv4SmDJ2bCduYGpATQNV7pYE ssIMQpfaGwhFFLnSxqAUxieXUVFuM4E5PbXyvxRZxDqgy7xaR+ujLFvwxNhb3YhSPlcG RmK090lTUk72DJRLGMT50MxZQ3Rm1VJtkzrL5vcwf1SRvMGkg/N1bxtTxKEPpGipv6Ic +1CYiQ7Mf33u9l+znzOjRboe5lmFFsl898IhDyYyLvfmwblGVwxIUjCp1gzcjB33Z2T2 mRVwh8ib8ZeyL1DAVXNXPbKFtzIaOzmswWv21P2D7E2u7r11aybPi01oUZ5zu7KVefnk 75gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZPrIJvDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si13691365iok.60.2021.07.20.16.10.13; Tue, 20 Jul 2021 16:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZPrIJvDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231566AbhGTW2x (ORCPT + 99 others); Tue, 20 Jul 2021 18:28:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23428 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbhGTW2d (ORCPT ); Tue, 20 Jul 2021 18:28:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626822532; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OUD1OSZkbHdMiWproUmhkia/gxOQdMwBwJdJdItumaQ=; b=ZPrIJvDeoR0EEIlUkN1X15tmKTha4vmAqYOch1T+kMddY9jBn2sAZv5gBmVP301oonX+Si WqDS4zKD2dkJazQEl8B7lbXPrrcnNRNVoDPMz2boalDzw4mOIElNn84NqCeZLUIYDGgWDj ZKhFA6xLn9b1Y39JDqX+EFnJMfBpw70= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-35-xp_2f9lyNwi0Mq1ihRHn8g-1; Tue, 20 Jul 2021 19:08:50 -0400 X-MC-Unique: xp_2f9lyNwi0Mq1ihRHn8g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 36FFF1084F54; Tue, 20 Jul 2021 23:08:49 +0000 (UTC) Received: from [10.64.54.195] (vpn2-54-195.bne.redhat.com [10.64.54.195]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F86460843; Tue, 20 Jul 2021 23:08:45 +0000 (UTC) Reply-To: Gavin Shan Subject: Re: [PATCH v2 09/12] mm/vm_debug_pgtable: Use struct pgtable_debug_args in PUD modifying tests To: kernel test robot , linux-mm@kvack.org Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, anshuman.khandual@arm.com, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, chuhu@redhat.com, shan.gavin@gmail.com References: <20210719054138.198373-10-gshan@redhat.com> <202107201004.qeO1MJnB-lkp@intel.com> From: Gavin Shan Message-ID: <3227af58-7ce4-1ea5-ae5d-bf3d8abc2790@redhat.com> Date: Wed, 21 Jul 2021 09:09:03 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <202107201004.qeO1MJnB-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/21 12:46 PM, kernel test robot wrote: > Hi Gavin, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v5.14-rc2] > [cannot apply to hnaz-linux-mm/master linux/master next-20210719] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/0day-ci/linux/commits/Gavin-Shan/mm-debug_vm_pgtable-Enhancements/20210719-134236 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c > config: x86_64-randconfig-c002-20210719 (attached as .config) > compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 > reproduce (this is a W=1 build): > # https://github.com/0day-ci/linux/commit/69db26024e6bd48423ebc83b0f83b7b52217b624 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Gavin-Shan/mm-debug_vm_pgtable-Enhancements/20210719-134236 > git checkout 69db26024e6bd48423ebc83b0f83b7b52217b624 > # save the attached .config to linux build tree > make W=1 ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > mm/debug_vm_pgtable.c: In function 'pud_huge_tests': >>> mm/debug_vm_pgtable.c:445:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable] > 445 | pud_t pud; > | ^~~ > mm/debug_vm_pgtable.c: In function 'debug_vm_pgtable': > mm/debug_vm_pgtable.c:1143:42: warning: variable 'pgd_aligned' set but not used [-Wunused-but-set-variable] > 1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned; > | ^~~~~~~~~~~ > mm/debug_vm_pgtable.c:1143:29: warning: variable 'p4d_aligned' set but not used [-Wunused-but-set-variable] > 1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned; > | ^~~~~~~~~~~ > mm/debug_vm_pgtable.c:1143:16: warning: variable 'pud_aligned' set but not used [-Wunused-but-set-variable] > 1143 | unsigned long pud_aligned, p4d_aligned, pgd_aligned; > | ^~~~~~~~~~~ > mm/debug_vm_pgtable.c:1142:36: warning: variable 'pmd_aligned' set but not used [-Wunused-but-set-variable] > 1142 | unsigned long vaddr, pte_aligned, pmd_aligned; > | ^~~~~~~~~~~ > mm/debug_vm_pgtable.c:1140:17: warning: variable 'protnone' set but not used [-Wunused-but-set-variable] > 1140 | pgprot_t prot, protnone; > | ^~~~~~~~ > mm/debug_vm_pgtable.c:1140:11: warning: variable 'prot' set but not used [-Wunused-but-set-variable] > 1140 | pgprot_t prot, protnone; > | ^~~~ > Please ignore these build warnings raised against v2 series because all of them should have been fixed in v3 series. Thanks, Gavin > > vim +/pud +445 mm/debug_vm_pgtable.c > > 5fe77be6bf14bf Shixin Liu 2021-06-30 442 > 69db26024e6bd4 Gavin Shan 2021-07-19 443 static void __init pud_huge_tests(struct pgtable_debug_args *args) > a5c3b9ffb0f404 Anshuman Khandual 2020-08-06 444 { > 5fe77be6bf14bf Shixin Liu 2021-06-30 @445 pud_t pud; > 5fe77be6bf14bf Shixin Liu 2021-06-30 446 > 69db26024e6bd4 Gavin Shan 2021-07-19 447 if (!arch_vmap_pud_supported(args->page_prot)) > 5fe77be6bf14bf Shixin Liu 2021-06-30 448 return; > 5fe77be6bf14bf Shixin Liu 2021-06-30 449 > 5fe77be6bf14bf Shixin Liu 2021-06-30 450 pr_debug("Validating PUD huge\n"); > 5fe77be6bf14bf Shixin Liu 2021-06-30 451 /* > 5fe77be6bf14bf Shixin Liu 2021-06-30 452 * X86 defined pud_set_huge() verifies that the given > 5fe77be6bf14bf Shixin Liu 2021-06-30 453 * PUD is not a populated non-leaf entry. > 5fe77be6bf14bf Shixin Liu 2021-06-30 454 */ > 69db26024e6bd4 Gavin Shan 2021-07-19 455 WRITE_ONCE(*(args->pudp), __pud(0)); > 69db26024e6bd4 Gavin Shan 2021-07-19 456 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn), > 69db26024e6bd4 Gavin Shan 2021-07-19 457 args->page_prot)); > 69db26024e6bd4 Gavin Shan 2021-07-19 458 WARN_ON(!pud_clear_huge(args->pudp)); > 69db26024e6bd4 Gavin Shan 2021-07-19 459 pud = READ_ONCE(*(args->pudp)); > a5c3b9ffb0f404 Anshuman Khandual 2020-08-06 460 } > 5fe77be6bf14bf Shixin Liu 2021-06-30 461 #else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */ > 54b1f4b50ddb0f Gavin Shan 2021-07-19 462 static void __init pmd_huge_tests(struct pgtable_debug_args *args) { } > 69db26024e6bd4 Gavin Shan 2021-07-19 463 static void __init pud_huge_tests(struct pgtable_debug_args *args) { } > 5fe77be6bf14bf Shixin Liu 2021-06-30 464 #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */ > 399145f9eb6c67 Anshuman Khandual 2020-06-04 465 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >