From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48AEAC433EF for ; Thu, 16 Jun 2022 10:51:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 415DF6B0072; Thu, 16 Jun 2022 06:51:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3C6226B0073; Thu, 16 Jun 2022 06:51:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 28E226B0074; Thu, 16 Jun 2022 06:51:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 19A066B0072 for ; Thu, 16 Jun 2022 06:51:04 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id CC86A15DA for ; Thu, 16 Jun 2022 10:51:03 +0000 (UTC) X-FDA: 79583781606.09.6908AFB Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf26.hostedemail.com (Postfix) with ESMTP id BE9C614009E for ; Thu, 16 Jun 2022 10:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655376662; x=1686912662; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dea6+J/lzTy4mTQTAX5+OHD7W4Cv1JGiuyOOmO/Pki8=; b=Ut5GBsUVVTLuTrwbWgSeK0fysMLY777jTD58Nu9lE6DmjBrV9zHH1fRK XAbOM7iaRsKaI7mWPJvpF27HQXWoqPO5xZWYCL9S399K6mZ5ZX0a84aZG OkYiztWw5B0/4fXD43fL0PnaSI6YP6/GPj2svH/bfley/u0TcqCxNOiAQ niBloVHPKdMdjEQmJs0cs+uPsikxYN3yf/EZFHken6dlcWP6+uaL26679 Ij8BSMGhntFDT8nU0vrvBOi6m6GUnz5feYmvlo5EAXQ5QZXiMwsQum2iK 486uE0YUlznCW7YfpvwR0I1caktze3En14QP3Nw+4YA56iPdyw3/hx9/P w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="267909964" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="267909964" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.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> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655376663; a=rsa-sha256; cv=none; b=CdFHs8uqb+w8VO17YV4LFSgNieUnAm1orapPqz28cUw8OPo6IUYJ4JgeCBIcxBu9mcBc/1 8f5MnGBjB+PtFwEkFH4TzcZbFzravOEwKJM87TgJankU+izRJW7HZ9skmfJ5ajHKaYd1jz rjILjUEzKBPmBM3YAiuXTIS1PECeSXM= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ut5GBsUV; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655376663; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SKoSBi1NlTJOsxpceiqo1O857uFzJ6BxtdeZQYULO4Y=; b=sQ0bgRnhoDPNhSM+BAZ4J1IVNDpp2JjSqM3BIVRf0i6pn7TqWxEVF92iDgB/ktBnBzZ8DM SS66d1GqowfzhSQV0CMBQ/wptK8T1M5Npx9uSA8dNNeRipiK1SpfqdubO8wYX2bV/jSEWE PoFw7npajnDUE1DfCjqxjbfbtjayasw= X-Stat-Signature: dae9p6j1sk63rughyueytqsds4bqbixe X-Rspamd-Queue-Id: BE9C614009E Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ut5GBsUV; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam07 X-Rspam-User: X-HE-Tag: 1655376662-870822 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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