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 C2B7DC433F5 for ; Thu, 24 Mar 2022 10:40:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A5E26B0074; Thu, 24 Mar 2022 06:40:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2554D6B0075; Thu, 24 Mar 2022 06:40:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11EC96B0078; Thu, 24 Mar 2022 06:40:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0034.hostedemail.com [216.40.44.34]) by kanga.kvack.org (Postfix) with ESMTP id 003B56B0074 for ; Thu, 24 Mar 2022 06:40:51 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9B8AC8249980 for ; Thu, 24 Mar 2022 10:40:51 +0000 (UTC) X-FDA: 79278936702.27.340A8DB Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf25.hostedemail.com (Postfix) with ESMTP id 8E338A0037 for ; Thu, 24 Mar 2022 10:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648118450; x=1679654450; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=NfLzqS0dQ7BYanFIKknfOLxjWK1epR1PMzWFpmr71Ic=; b=CyYcDwltE+bHEc0S8jrYCm/3/krQZB3ltngm4NTEG1N8GyLSSF5STJHN yHYiTxp6fHn/7b9vyUWce4T75SGj6/SRksQ5dOcOHwaUApp/DXrXyGAwS qOEbYln19CV1oJExXdGXGF9HfCurPBvhGJmI4miLzKGe9GNL/eyGWymX5 dJpzTOXwy40THMBKdM9fFJVxvjirO5yvzLToSi4q8zAPl6VdNyzd6oxAX g9wRvrruSCDNMzOH+O/0mq/uJSKl8LFja8lZtvXJmKW17484wGOZIoGUg E885doL+7cM6AzobRiUMoAJGgqsIkSEGOl7s1D4UYhz9aKHM3wdX9tZsv Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10295"; a="283201930" X-IronPort-AV: E=Sophos;i="5.90,207,1643702400"; d="scan'208";a="283201930" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2022 03:40:49 -0700 X-IronPort-AV: E=Sophos;i="5.90,207,1643702400"; d="scan'208";a="561320061" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.249.174.249]) ([10.249.174.249]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2022 03:40:44 -0700 Subject: Re: [PATCH v5 1/4] mm: hugetlb_vmemmap: introduce STRUCT_PAGE_SIZE_IS_POWER_OF_2 To: Muchun Song Cc: Andrew Morton , kernel test robot , Jonathan Corbet , Mike Kravetz , Luis Chamberlain , Kees Cook , Iurii Zaikin , Oscar Salvador , David Hildenbrand , kbuild-all@lists.01.org, Linux Doc Mailing List , LKML , Linux Memory Management List , Xiongchun duan , Muchun Song References: <20220323125523.79254-2-songmuchun@bytedance.com> <202203240546.MHJzsBaO-lkp@intel.com> <20220323151311.289dd405440932e1d6d80f30@linux-foundation.org> <7872f093-e26d-3403-d6cf-c6c1a782242b@intel.com> From: "Chen, Rong A" Message-ID: <4bf80e3a-ada7-942b-5bc1-2a1d2fee17c8@intel.com> Date: Thu, 24 Mar 2022 18:40:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=CyYcDwlt; spf=none (imf25.hostedemail.com: domain of rong.a.chen@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=rong.a.chen@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: d5k5uopec5jr6sa6oqpofh9si1iu5cab X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8E338A0037 X-HE-Tag: 1648118450-629184 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: On 3/24/2022 6:20 PM, Muchun Song wrote: > On Thu, Mar 24, 2022 at 5:40 PM Chen, Rong A wrote: >> >> >> >> On 3/24/2022 6:13 AM, Andrew Morton wrote: >>> On Thu, 24 Mar 2022 06:06:41 +0800 kernel test robot wrote: >>> >>>> Hi Muchun, >>>> >>>> Thank you for the patch! Yet something to improve: >>>> >>>> [auto build test ERROR on hnaz-mm/master] >>>> [also build test ERROR on linus/master next-20220323] >>>> [cannot apply to mcgrof/sysctl-next v5.17] >>>> [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/Muchun-Song/add-hugetlb_free_vmemmap-sysctl/20220323-205902 >>>> base: https://github.com/hnaz/linux-mm master >>>> config: arc-randconfig-r043-20220323 (https://download.01.org/0day-ci/archive/20220324/202203240546.MHJzsBaO-lkp@intel.com/config) >>>> compiler: arc-elf-gcc (GCC) 11.2.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/0day-ci/linux/commit/64211be650af117819368a26d7b86c33df5deea4 >>>> git remote add linux-review https://github.com/0day-ci/linux >>>> git fetch --no-tags linux-review Muchun-Song/add-hugetlb_free_vmemmap-sysctl/20220323-205902 >>>> git checkout 64211be650af117819368a26d7b86c33df5deea4 >>>> # save the config file to linux build tree >>>> mkdir build_dir >>>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc prepare >>>> >>>> If you fix the issue, kindly add following tag as appropriate >>>> Reported-by: kernel test robot >>>> >>>> All errors (new ones prefixed by >>): >>>> >>>>>> cc1: fatal error: cannot open 'kernel/bounds.s' for writing: No such file or directory >>> >>> It would take a lot of talent for Munchun to have caused this! >>> >>> Methinks you just ran out of disk space? >> >> Hi Andrew, >> >> Thanks for the reply, I tried to apply this patch to the head of >> mainline and I still can reproduce the error in my local machine: >> >> $ wget -q -O - >> https://lore.kernel.org/lkml/20220323125523.79254-2-songmuchun@bytedance.com/raw >> | git apply -v >> $ mkdir build_dir && wget >> https://download.01.org/0day-ci/archive/20220324/202203240546.MHJzsBaO-lkp@intel.com/config >> -O build_dir/.config >> $ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross >> O=build_dir ARCH=arc olddefconfig prepare >> make --keep-going CONFIG_OF_ALL_DTBS=y CONFIG_DTC=y >> CROSS_COMPILE=/home/nfs/0day/gcc-11.2.0-nolibc/arc-elf/bin/arc-elf- >> --jobs=72 O=build_dir ARCH=arc olddefconfig prepare >> ... >> cc1: fatal error: cannot open 'kernel/bounds.s' for writing: No such >> file or directory >> compilation terminated. >> make[3]: *** [../scripts/Makefile.build:121: kernel/bounds.s] Error 1 >> make[3]: Target '__build' not remade because of errors. >> make[2]: *** [../Makefile:1191: prepare0] Error 2 >> make[2]: Target 'prepare' not remade because of errors. >> > > Would you help me to test the following patch? Thanks. I have confirmed the patch can fix the issue. Best Regards, Rong Chen > > diff --git a/Kbuild b/Kbuild > index 21415c3b2728..a8477c011b1d 100644 > --- a/Kbuild > +++ b/Kbuild > @@ -42,7 +42,7 @@ $(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE > struct_page_size-file := include/generated/struct_page_size.h > > always-y := $(struct_page_size-file) > -targets := mm/struct_page_size.s > +targets += mm/struct_page_size.s > > mm/struct_page_size.s: $(timeconst-file) $(bounds-file) >