Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp312184rwn; Fri, 16 Sep 2022 21:25:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kkb9QN3jw+8ui4BJLFZMoL8kYpYbunwOZyfsXkfQYAmjd8OW1ZR9i/blXOSSzU9xgJfjR X-Received: by 2002:a05:6402:350b:b0:452:2b68:90db with SMTP id b11-20020a056402350b00b004522b6890dbmr6498801edd.255.1663388725153; Fri, 16 Sep 2022 21:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663388725; cv=none; d=google.com; s=arc-20160816; b=XLZe7Mvmp+TExGVuKIUDtRV232KGaYDUbYlmnF8KbWyazXzzC3MFZG1WQ4vTMcjPmO cBwsJZuGoXjX9kBK2lU2GrZ2NZYz1ilCV1bNvvZ6GUnBN4ylx3rP4K3vvLVRCCbY7rGK GcY5l4IHhey8Vr5tJoAnbUMHDlEKnL/t2BJ0l3g3ZLtFHAj9u+sGRR9Mce0hqPSpEaqj 3uXG6gbaiFk39iepbYO78Pshb33M6/hxfImjEPTtg0e3FqCgsV0z3pGEJXCI0W7ft+Lt CIGKoQOK4Qe9ixRI+tNrfQvOy9dPlTdOph7WJTi5zxJkI2IBBTh2ykTxYwQNxpIl4GRr GmYQ== 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=WgZnIVGt2ffHBTocHrvNXs8aEnkqPMf6RLytlC2Fzu8=; b=UmVCclOALqzZpQLZ4YLzBJOSnrRjZaQxmYT1q9pX7NdfCUCcU26I9SSu8eUp5GUviM MZbEgD+0BWhTvKNCz/IDXXHCN0Yd2TylApxwlBYmeV4eyChhMPffuUhQIaLEX0HmmVd9 FkozwzXgeDjuW3AWpUiH9cRVNT6fN+Tddul+3wCSefavAUxmNJbF4romiyk/kqGN38g7 O4Tst0NpW6K+qBUVYE9DiRcoskDi73llWGNcS/TRiTnSCtpEuyIk5V7mufJjLZutD0vQ smsFKRcj+vUkvEK10JQVmsxQtwJPL0988mUG4iXKlWgWYRhFgt+0RjkbtK+ZACwXr9X6 q9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OrPkYZKY; 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 dr13-20020a170907720d00b007417e9a2c71si17948597ejc.352.2022.09.16.21.24.56; Fri, 16 Sep 2022 21:25:25 -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=OrPkYZKY; 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 S229539AbiIQEQA (ORCPT + 99 others); Sat, 17 Sep 2022 00:16:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiIQEP6 (ORCPT ); Sat, 17 Sep 2022 00:15:58 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B359642CB for ; Fri, 16 Sep 2022 21:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663388157; x=1694924157; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dQDpK8w0a7wlRSYg04W1GIu8E15asfGUgzZTlQ9DWXc=; b=OrPkYZKYyABNfCv1/oJRTWyQDoDb5wXe6Y9gENjWVbSjhhoX+vfEf5Q/ f6wrT5QGtm7bYlrOxYtCUhIKWhzd+3jOQeIGk1puW88R2hafu/3h2KrkO M+Y/mDe7ikZl0RoFaKVdi396oqBjKt0W/Q46x6vAQUvQe7IhsBQOQuFny f12HGyQZDakRMMZpVDVR7HqLAuSfTlW9zAS0/gJH9gGoX+qDThRFI5ShR AOaXe7jI0v4ej7Tkkw98vcTr1MVRhhWRyJdNEURtYMTVgz1ipUBQX81ii jg2Es5EndWIMMufyBy3pulEKIcOo2HaSK2ZdzvCYD8qNadeAjKOlNRHY1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10472"; a="325401234" X-IronPort-AV: E=Sophos;i="5.93,322,1654585200"; d="scan'208";a="325401234" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 21:15:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,322,1654585200"; d="scan'208";a="648494343" Received: from lkp-server02.sh.intel.com (HELO 41300c7200ea) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 16 Sep 2022 21:15:55 -0700 Received: from kbuild by 41300c7200ea with local (Exim 4.96) (envelope-from ) id 1oZPFC-0002TK-17; Sat, 17 Sep 2022 04:15:54 +0000 Date: Sat, 17 Sep 2022 12:15:19 +0800 From: kernel test robot To: Li Zhong , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, akpm@linux-foundation.org, Li Zhong Subject: Re: [PATCH v1] mm/vmscan: check the return value of migrate_pages() Message-ID: <202209171239.jS3610fm-lkp@intel.com> References: <20220917021257.3840548-1-floridsleeves@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220917021257.3840548-1-floridsleeves@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 Li, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.0-rc5] [cannot apply to akpm-mm/mm-everything next-20220916] [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/Li-Zhong/mm-vmscan-check-the-return-value-of-migrate_pages/20220917-101433 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a335366bad1364a07f49df9da1fdfa6d411a5f39 config: hexagon-randconfig-r041-20220916 (https://download.01.org/0day-ci/archive/20220917/202209171239.jS3610fm-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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/0ea516d584bd904c43954e312ac42fced822dcf7 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Li-Zhong/mm-vmscan-check-the-return-value-of-migrate_pages/20220917-101433 git checkout 0ea516d584bd904c43954e312ac42fced822dcf7 # 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 errors (new ones prefixed by >>): >> mm/vmscan.c:1564:26: error: use of undeclared identifier 'pagelist'; did you mean 'pageout'? putback_movable_pages(&pagelist); ^~~~~~~~ pageout mm/vmscan.c:1215:18: note: 'pageout' declared here static pageout_t pageout(struct folio *folio, struct address_space *mapping, ^ 1 error generated. vim +1564 mm/vmscan.c 1539 1540 /* 1541 * Take pages on @demote_list and attempt to demote them to 1542 * another node. Pages which are not demoted are left on 1543 * @demote_pages. 1544 */ 1545 static unsigned int demote_page_list(struct list_head *demote_pages, 1546 struct pglist_data *pgdat) 1547 { 1548 int target_nid = next_demotion_node(pgdat->node_id); 1549 unsigned int nr_succeeded; 1550 int ret; 1551 1552 if (list_empty(demote_pages)) 1553 return 0; 1554 1555 if (target_nid == NUMA_NO_NODE) 1556 return 0; 1557 1558 /* Demotion ignores all cpuset and mempolicy settings */ 1559 ret = migrate_pages(demote_pages, alloc_demote_page, NULL, 1560 target_nid, MIGRATE_ASYNC, MR_DEMOTION, 1561 &nr_succeeded); 1562 1563 if (ret) > 1564 putback_movable_pages(&pagelist); 1565 1566 if (current_is_kswapd()) 1567 __count_vm_events(PGDEMOTE_KSWAPD, nr_succeeded); 1568 else 1569 __count_vm_events(PGDEMOTE_DIRECT, nr_succeeded); 1570 1571 return nr_succeeded; 1572 } 1573 -- 0-DAY CI Kernel Test Service https://01.org/lkp