Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1216581iol; Sun, 12 Jun 2022 09:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPmwZQVhThtwgh9FAwQOLfcm3g7dErjzH3RAKQzzgv/S31QddaPmxKYJ+2q3NvtHW72puM X-Received: by 2002:a17:906:3f4f:b0:715:85b4:54be with SMTP id f15-20020a1709063f4f00b0071585b454bemr3146360ejj.368.1655050550654; Sun, 12 Jun 2022 09:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655050550; cv=none; d=google.com; s=arc-20160816; b=CBT7LdlHsZQaxbL+6ZK8t4ET/qHjPw4E/Evcs7PJoa5sD51esJl8MdwXt+EPYLsMQ8 mY9anNdBLcA/fK+loCLTTUK2WtbH534qGzpmuJtfDeYNYcsAcxdy2eqm3Lfv1iUwmwFk PRtf53SsoapxYEibCgSwkVlfYJTvp+x9M/gmwQFZqDoJlRcYjNLsaSVmGkthryLAjwSj 6T9rEmAlH69LtBs5NnjjasRHWf5eoaYJ7fE+tDXPf9prMzze2vgwJd4EEZcR5kNkiSac cpEE/Wsvrri3OEFRQDf4VOiefoknhlLhElgoecOdag5P9X/JgOlLgJD3/yb1Gqkwb1UJ SLCg== 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=4OLO7gcKXHmBG5ZA1GFjzJ2MZiACMQRzANWumLQSKEg=; b=oFDzzmX7rhUGvGYG2axzvCpcl3PyiBsqAIeaenoUCz69W46NXMZ9ZZHMpDuQuMQ+wZ fYcYPbDp64HFNoYezRrxpG12528ZlxBIGxOK4TYt7SeaqTlYu2b1OwqOQzo5zdWoq8y5 gIEyBel01zi6EHIq41p3XxIpxiIK4uxQbdYmokppT8oQ22LYnkd7SkWYhI/rl5YG0K89 u09XZNGLt4zy0yJ9HtpXbA7Gy18KxsFTRns0D5h+p7TARKEshuRcmOxTJzt6tiiuLH8Y OQz14EUGQtb1Wg83oPiwBehi2qhwSMH1RWXDm7/lBcPLuKBpGOZzjFQE1vbj0wfyZE+8 G9Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kIy1pA2a; 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 sb18-20020a1709076d9200b006f3b16423ebsi5974951ejc.620.2022.06.12.09.15.26; Sun, 12 Jun 2022 09:15:50 -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=kIy1pA2a; 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 S236464AbiFLL6Q (ORCPT + 99 others); Sun, 12 Jun 2022 07:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236435AbiFLL6P (ORCPT ); Sun, 12 Jun 2022 07:58:15 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB6012762 for ; Sun, 12 Jun 2022 04:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655035091; x=1686571091; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Zc2fQ1DQs6hOo+7bC7Stci3yT/NodzkSleYAFJQhRFo=; b=kIy1pA2a1SBxCv8tPHydbj5t6jPik+19qf+6oAgttlVFvKc+3DGVncyG xQ+DMVIh1lF/5KQr8BRskidQ1bBV+Do4F9FUmP2IecVhUWSWxoD7vvywY B30DcsCJmwmiaMaEwfuqIOVHU2tKOwpNY7tShBPMHj1CZveXbPUyZ9+zK uaN3bVrHto1ylcq1tzdx8VCF4cVgDv/IK0yOB8wDtISaPSvIkyBkDup27 nZna6kW33Q2A+ffN+hdxDGrJ/Jw6uwNdK41t+K6b90tjVbYjuNcVSGXPN sYezvy+E+iVH/lgng4/WWBNk/hbdjQSj/F0Qo1FRVPCNEsRLAotpf0alN w==; X-IronPort-AV: E=McAfee;i="6400,9594,10375"; a="258473337" X-IronPort-AV: E=Sophos;i="5.91,294,1647327600"; d="scan'208";a="258473337" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2022 04:58:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,294,1647327600"; d="scan'208";a="672764530" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 12 Jun 2022 04:58:06 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o0MEI-000Jto-6e; Sun, 12 Jun 2022 11:58:06 +0000 Date: Sun, 12 Jun 2022 19:57:32 +0800 From: kernel test robot To: Huanpeng Xin , akpm@linux-foundation.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, xinhuanpeng Subject: Re: [PATCH] mm: add a new emergency page migratetype. Message-ID: <202206121954.0XdxzVrV-lkp@intel.com> References: <20220606032709.11800-1-xinhuanpeng9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220606032709.11800-1-xinhuanpeng9@gmail.com> X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Huanpeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Huanpeng-Xin/mm-add-a-new-emergency-page-migratetype/20220606-113050 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: hexagon-randconfig-r026-20220612 (https://download.01.org/0day-ci/archive/20220612/202206121954.0XdxzVrV-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ff4abe755279a3a47cc416ef80dbc900d9a98a19) 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/c3dbdae8f54c1335f2cb92b379a6eab1253500c8 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Huanpeng-Xin/mm-add-a-new-emergency-page-migratetype/20220606-113050 git checkout c3dbdae8f54c1335f2cb92b379a6eab1253500c8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon 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/page_alloc.c:2940:12: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] nid, zone->nr_reserved_emergency); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:528:37: note: expanded from macro 'pr_warn' printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:475:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:447:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ~~~~ ^~~~~~~~~~~ mm/page_alloc.c:2948:10: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] nid, zone->nr_reserved_emergency); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:548:34: note: expanded from macro 'pr_info' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:475:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:447:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ~~~~ ^~~~~~~~~~~ >> mm/page_alloc.c:4215:10: error: no member named 'high_zoneidx' in 'struct alloc_context'; did you mean 'highest_zoneidx'? if (ac->high_zoneidx >= ZONE_NORMAL) { ^~~~~~~~~~~~ highest_zoneidx mm/internal.h:226:17: note: 'highest_zoneidx' declared here enum zone_type highest_zoneidx; ^ >> mm/page_alloc.c:4238:33: error: too few arguments to function call, expected 3, have 2 zone_statistics(z->zone, zone); ~~~~~~~~~~~~~~~ ^ mm/page_alloc.c:3697:20: note: 'zone_statistics' declared here static inline void zone_statistics(struct zone *preferred_zone, struct zone *z, ^ 2 warnings and 2 errors generated. vim +4215 mm/page_alloc.c 4204 4205 #ifdef CONFIG_EMERGENCY_MEMORY 4206 /* 4207 * get_emergency_page_from_freelist allocates pages in reserved memory 4208 * in the migration type MIGRATE_EMERGENCY. 4209 */ 4210 static struct page *get_emergency_page_from_freelist(gfp_t gfp_mask, unsigned int order, 4211 int alloc_flags, const struct alloc_context *ac, int migratetype) 4212 { 4213 struct page *page = NULL; 4214 > 4215 if (ac->high_zoneidx >= ZONE_NORMAL) { 4216 struct zoneref *z = ac->preferred_zoneref; 4217 struct pglist_data *pgdat = NODE_DATA(zonelist_node_idx(z)); 4218 struct zone *zone = &pgdat->node_zones[ZONE_NORMAL]; 4219 unsigned long flags; 4220 4221 if (cpusets_enabled() && 4222 (alloc_flags & ALLOC_CPUSET) && 4223 !__cpuset_zone_allowed(zone, gfp_mask)) 4224 return NULL; 4225 4226 spin_lock_irqsave(&zone->lock, flags); 4227 do { 4228 page = __rmqueue_smallest(zone, order, migratetype); 4229 } while (page && check_new_pages(page, order)); 4230 4231 spin_unlock(&zone->lock); 4232 4233 if (page) { 4234 __mod_zone_freepage_state(zone, -(1 << order), 4235 get_pcppage_migratetype(page)); 4236 4237 __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); > 4238 zone_statistics(z->zone, zone); 4239 prep_new_page(page, order, gfp_mask, alloc_flags); 4240 } 4241 local_irq_restore(flags); 4242 } 4243 4244 return page; 4245 -- 0-DAY CI Kernel Test Service https://01.org/lkp