Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1338783iog; Thu, 16 Jun 2022 04:25:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vNRU+0jVi/xSDcNEta+25uC9YRKLZ3qnHYncoJq3KRDNum7F59e8zLpFvEXf9Y5b8Tz99K X-Received: by 2002:a63:6806:0:b0:3fc:3b43:52d5 with SMTP id d6-20020a636806000000b003fc3b4352d5mr4038307pgc.319.1655378745184; Thu, 16 Jun 2022 04:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655378745; cv=none; d=google.com; s=arc-20160816; b=06QNeSsPoo77RrRvENpUv0aEx3k5ea7j+s1T0OPzC1zCuGUENxVTcF/OuLBQaWE2/e Alck6Lj1Ta0mVp1GmiTmP7jj8JeN871CmANOrKv5WZ+blDm/ClhVAoKer0uOnoDHP3c0 +SPR5+JOmK2n/kUhva7UfOktGt3cdLFX8nYW50mqzCvVijfu7wFhy4OeoGsgbAWH4SDH t+AryJTDUB6UDNI9DHoJ/crVvjrryXJyViSFx8nMqnXtqQ6ktvVygttwOk5aksHJupxh lSj6Q6uq0ZdNCVz5bL9ZuttOU+WnJ/MX2S85atgTHhUw33RRIObsQpiKsLCOutny1/y1 mjrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SKoSBi1NlTJOsxpceiqo1O857uFzJ6BxtdeZQYULO4Y=; b=JQGJaj0MME6cki7SFP+SImXgIsB4qsM70xItFJT58OqJpDylRAqM7PtfSMMo/biz48 EiiH3b8AvJIzC4gxaytj3NGyqGzhEyhnaKpYMFQ5CdZOiK2c91CbgFmAsFPGNGfkqcnB 4xfsK3rhfB5N7QQdOWzClKQhFQ35babg6c2eKcWkgU3MZE2A74Rd1uCmswd8iCs2tmYC LthmhJC+D/2uE+EMUTVKkVIYxUrQqzOm18CG2cSlqkm8NZ/mxyAXGt/87riWFYxMeouK XTALLE9hT+8gy+YGbWCcoYVUQrueqBRVVPCYVCaztn+JpXfqmCmwl00cJGnYjmO+JPai SOQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Vy0YkOKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la19-20020a17090b161300b001c6a62efe0dsi2027980pjb.89.2022.06.16.04.25.32; Thu, 16 Jun 2022 04:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Vy0YkOKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376507AbiFPKvG (ORCPT + 99 others); Thu, 16 Jun 2022 06:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376370AbiFPKvA (ORCPT ); Thu, 16 Jun 2022 06:51:00 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC8E05DD00 for ; Thu, 16 Jun 2022 03:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655376659; x=1686912659; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dea6+J/lzTy4mTQTAX5+OHD7W4Cv1JGiuyOOmO/Pki8=; b=Vy0YkOKPH0+p1rcCrzuHN+5zvUyoqroOQjEfD8Mn/5eZbEzdZD8axza/ xuZN5v46SNoomDHyv7KUKTWM0lN2Say2XXGtfUOQNY5sNCrTCMdheDkYN oaYReSJXiyFMBEeBeT1SIIVjPuJ201WAiBIY4QlLYQvUQovCQQN8FN9Mj z16bHgNHTfzLHzNGviABUIP3eBuq1kJfNHC4BAmmKKdfaGfOEqfh3gIOZ ew68ivinpLF79P4tDKMwRED89QbV5rpHdzUWTX9JM0AI0/tMPqo1nD/5i gDB71/a/GJQklBlRSqM9KKJJD5maTXhr4savkhNsc2kJTZffkwT8wSBqe A==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="276796187" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="276796187" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 03:50:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="687769188" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 16 Jun 2022 03:50:56 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1n5U-000OJ0-73; Thu, 16 Jun 2022 10:50:56 +0000 Date: Thu, 16 Jun 2022 18:50:20 +0800 From: kernel test robot To: Baolin Wang , mike.kravetz@oracle.com Cc: kbuild-all@lists.01.org, songmuchun@bytedance.com, akpm@linux-foundation.org, catalin.marinas@arm.com, will@kernel.org, anshuman.khandual@arm.com, baolin.wang@linux.alibaba.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] arm64/hugetlb: Implement arm64 specific hugetlb_mask_last_hp Message-ID: <202206161848.w1bWqr7O-lkp@intel.com> References: <7256dbe078d7231f45b0f47c2c52a3bd3aa10da7.1655350193.git.baolin.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7256dbe078d7231f45b0f47c2c52a3bd3aa10da7.1655350193.git.baolin.wang@linux.alibaba.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baolin, I love your patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on linus/master v5.19-rc2 next-20220616] [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/intel-lab-lkp/linux/commits/Baolin-Wang/arm64-hugetlb-Implement-arm64-specific-hugetlb_mask_last_hp/20220616-113640 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm64-buildonly-randconfig-r001-20220616 (https://download.01.org/0day-ci/archive/20220616/202206161848.w1bWqr7O-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/f1309dfbc2b70ec5dd72ac38e95a49b7be42b9b6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Baolin-Wang/arm64-hugetlb-Implement-arm64-specific-hugetlb_mask_last_hp/20220616-113640 git checkout f1309dfbc2b70ec5dd72ac38e95a49b7be42b9b6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/arm64/mm/hugetlbpage.c:371:15: warning: no previous prototype for 'hugetlb_mask_last_hp' [-Wmissing-prototypes] 371 | unsigned long hugetlb_mask_last_hp(struct hstate *h) | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/mm/hugetlbpage.c: In function 'hugetlb_mask_last_hp': >> arch/arm64/mm/hugetlbpage.c:380:9: error: duplicate case value 380 | case PMD_SIZE: | ^~~~ arch/arm64/mm/hugetlbpage.c:376:9: note: previously used here 376 | case PUD_SIZE: | ^~~~ vim +380 arch/arm64/mm/hugetlbpage.c 370 371 unsigned long hugetlb_mask_last_hp(struct hstate *h) 372 { 373 unsigned long hp_size = huge_page_size(h); 374 375 switch (hp_size) { 376 case PUD_SIZE: 377 return PGDIR_SIZE - PUD_SIZE; 378 case CONT_PMD_SIZE: 379 return PUD_SIZE - CONT_PMD_SIZE; > 380 case PMD_SIZE: 381 return PUD_SIZE - PMD_SIZE; 382 case CONT_PTE_SIZE: 383 return PMD_SIZE - CONT_PTE_SIZE; 384 default: 385 break; 386 } 387 388 return ~0UL; 389 } 390 -- 0-DAY CI Kernel Test Service https://01.org/lkp