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 E7AC0C38145 for ; Wed, 7 Sep 2022 04:02:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 38F5D6B0073; Wed, 7 Sep 2022 00:02:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 33F766B0074; Wed, 7 Sep 2022 00:02:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 207866B0075; Wed, 7 Sep 2022 00:02:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 11CC66B0073 for ; Wed, 7 Sep 2022 00:02:08 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id DDF30A0876 for ; Wed, 7 Sep 2022 04:02:07 +0000 (UTC) X-FDA: 79883941494.24.20CCFBC Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf20.hostedemail.com (Postfix) with ESMTP id 3FB261C008B for ; Wed, 7 Sep 2022 04:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662523326; x=1694059326; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ln+JO6/zBHVt1PCyuUuoSHz5m1pbbht0yVef688wCVI=; b=AV/PeDdSreqz2WUpPvf1bwlKx/WGzcmsLb2IX4h0ThNxpuA98l2xwaRw b2+EpruLh0sEcr3fv3oKfVn2wNvMiiLZaIcRRH+Kv98uMGmUfYABGorTZ URGUn2LZkWhys8JwBagRq5y7HcQG0CS38yfSlIP+m0efSJnAaVXeVy3Ya zwPpdtxEYSbuxgNqwS1gkLF08MeNKsKZrvdktBkZjDZR1kCLtjl+JLOWu QRVITUlMrP7vLlG3S2GhpaGQlVF2FWVm5akpnX8MMXyg73RfZiuLXD6sp vjbvYH2PwLDjWn5HmvrOflLB+YDKi9wV0CllpRgGavPdL1GgvJ4XwajSs Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="298087663" X-IronPort-AV: E=Sophos;i="5.93,295,1654585200"; d="scan'208";a="298087663" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 21:02:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,295,1654585200"; d="scan'208";a="682655588" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 06 Sep 2022 21:02:01 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oVmGG-000653-1f; Wed, 07 Sep 2022 04:02:00 +0000 Date: Wed, 7 Sep 2022 12:01:13 +0800 From: kernel test robot To: Sidhartha Kumar , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: kbuild-all@lists.01.org, akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, vbabka@suse.cz, william.kucharski@oracle.com, dhowells@redhat.com, peterx@redhat.com, arnd@arndb.de, ccross@google.com, hughd@google.com, ebiederm@xmission.com, Sidhartha Kumar Subject: Re: [PATCH v2 6/6] mm/hugetlb add folio_hstate() Message-ID: <202209071158.3gw6CkuN-lkp@intel.com> References: <20220906165445.146913-7-sidhartha.kumar@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906165445.146913-7-sidhartha.kumar@oracle.com> ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="AV/PeDdS"; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662523327; a=rsa-sha256; cv=none; b=T8DNCeyC7p6904cK55/QD6b0N6x3UFIh1NJtKzLPt8C5zLzjSB79URF4Ixj3ghjm8spCH2 0T9Y27xW3wMpidaLb4R6tgeNJdnjy1fpkVE1/gf/jJC51KWvkwFU/HdxRyL/ZsyzDv3Gq/ ack9Dak4wC8XwVGyz3JIl55eyjTMrGA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662523327; 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=IKGtQN1gTVtIUMIhT+I8pG1d55KSXABEMP3rH4Q+4RE=; b=ZeB0jEQyDwUjyI2voroEBcwfUFLMtEkTgQcs5QNhkQnKJ+rG6CsIO3Ekp/p0+PXtYDUY/c LYL54hOr5KDLLp7Qf62g0Hbf7RT9q7W8cVe6n9GE2XDY6Lq0/XuBuXIQM88fS5ljAY98on jSH/abFQl1TQg7HW/GThANQ+3bO5pFY= Authentication-Results: imf20.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="AV/PeDdS"; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: r1aubkfifr8omb43axpy1qq7g91i4qtf X-Rspamd-Queue-Id: 3FB261C008B X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1662523326-497526 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 Sidhartha, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on next-20220906] [cannot apply to soc/for-next linus/master v6.0-rc4] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sidhartha-Kumar/begin-converting-hugetlb-code-to-folios/20220907-005803 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: openrisc-randconfig-r033-20220906 (https://download.01.org/0day-ci/archive/20220907/202209071158.3gw6CkuN-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 12.1.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/4f02eaa12cd159c40269d80d357809de3be5518a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Sidhartha-Kumar/begin-converting-hugetlb-code-to-folios/20220907-005803 git checkout 4f02eaa12cd159c40269d80d357809de3be5518a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=openrisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): mm/migrate.c: In function 'alloc_migration_target': >> mm/migrate.c:1610:36: error: implicit declaration of function 'folio_hstate'; did you mean 'folio_activate'? [-Werror=implicit-function-declaration] 1610 | struct hstate *h = folio_hstate(folio); | ^~~~~~~~~~~~ | folio_activate >> mm/migrate.c:1610:36: warning: initialization of 'struct hstate *' from 'int' makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors vim +1610 mm/migrate.c 1592 1593 struct page *alloc_migration_target(struct page *page, unsigned long private) 1594 { 1595 struct folio *folio = page_folio(page); 1596 struct migration_target_control *mtc; 1597 gfp_t gfp_mask; 1598 unsigned int order = 0; 1599 struct folio *new_folio = NULL; 1600 int nid; 1601 int zidx; 1602 1603 mtc = (struct migration_target_control *)private; 1604 gfp_mask = mtc->gfp_mask; 1605 nid = mtc->nid; 1606 if (nid == NUMA_NO_NODE) 1607 nid = folio_nid(folio); 1608 1609 if (folio_test_hugetlb(folio)) { > 1610 struct hstate *h = folio_hstate(folio); 1611 1612 gfp_mask = htlb_modify_alloc_mask(h, gfp_mask); 1613 return alloc_huge_page_nodemask(h, nid, mtc->nmask, gfp_mask); 1614 } 1615 1616 if (folio_test_large(folio)) { 1617 /* 1618 * clear __GFP_RECLAIM to make the migration callback 1619 * consistent with regular THP allocations. 1620 */ 1621 gfp_mask &= ~__GFP_RECLAIM; 1622 gfp_mask |= GFP_TRANSHUGE; 1623 order = folio_order(folio); 1624 } 1625 zidx = zone_idx(folio_zone(folio)); 1626 if (is_highmem_idx(zidx) || zidx == ZONE_MOVABLE) 1627 gfp_mask |= __GFP_HIGHMEM; 1628 1629 new_folio = __folio_alloc(gfp_mask, order, nid, mtc->nmask); 1630 1631 return &new_folio->page; 1632 } 1633 -- 0-DAY CI Kernel Test Service https://01.org/lkp