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 596C8C3DA6F for ; Wed, 23 Aug 2023 22:42:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 72A4B280074; Wed, 23 Aug 2023 18:42:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D9CD280067; Wed, 23 Aug 2023 18:42:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C999280074; Wed, 23 Aug 2023 18:42:06 -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 4E409280067 for ; Wed, 23 Aug 2023 18:42:06 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 26748B160A for ; Wed, 23 Aug 2023 22:42:06 +0000 (UTC) X-FDA: 81156843852.04.7545084 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by imf08.hostedemail.com (Postfix) with ESMTP id 5484F160019 for ; Wed, 23 Aug 2023 22:42:03 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l2GIUPhn; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692830524; 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=rs8O2amZtqiV3Yg743CSfLtPQ4EagBsM+1iOmAqxl78=; b=hj0qmnB4QIIJ4CgPh2r6Z031Q49m26wU1nVxDbHEM8I3hejhvOTZ47TZnXaFAnjhoXP0wj PNq4nnYWI4jo08Lw9WzjuiQDrDl8rznpMDGJzLlfkBjGrp3+ugiMqycIhe7gbPI02r/6dv 7QjF4kegdDGqwTpB4Key9zi2bVkjYU0= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l2GIUPhn; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692830524; a=rsa-sha256; cv=none; b=nD/AjL3OCSnFzQZNW2Rw0fp1u0kDawgL3BeNrJUYQ9zY2NzzsoVALIq7+uWMYz/T4a9IiI ZJCpEHw6knEq6E7ibCjkADmNxpAvxW5Gz2mh+WiyTjYnVjd4mIt8no1j83fxIQhvuUslJH uZLQI0JBwIEmuBrmp9JoDugITpJqF44= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692830523; x=1724366523; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7GsoHVjGAnzr0npIMBdQcCZqngf3794Y9d9PFhE5SKM=; b=l2GIUPhnq5Sp0w+KQooA/6UGW+ZG4G6vcUn4uj2CxKoSkM5yystURB7U hgmkIQWvkG2kuh+IH6KWKFht874RmSPPnzcSNa8E+y9M7lEPxk83KCc7G 8UseXrGOmv0JKd197LnrCc6DKiElSEMN7ajpJVz+j5uMCKIIpWgXjuwtD QbRZtApiEdn4M94Lpf3pQMmPDnnjtXepRMIO4msQ+vuI1wwua5gq2LIOT HhKgFptOeFJNhIDps8mQWyRBRzl/CMm/ZkzE9+dAbuy/yr+MOWIvOwDJQ 0hWbYRUB9l4FBW+zhNzO6SLOtZGZilByox3ZioggvSIZiukiy5KBbG7kY Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10811"; a="371700014" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="371700014" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2023 15:42:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10811"; a="910688312" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="910688312" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 23 Aug 2023 15:41:58 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qYwY1-0001Ye-27; Wed, 23 Aug 2023 22:41:57 +0000 Date: Thu, 24 Aug 2023 06:40:58 +0800 From: kernel test robot To: Johannes Weiner , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: [PATCH 8/8] mm: page_alloc: consolidate free page accounting Message-ID: <202308240628.YoW5rQTu-lkp@intel.com> References: <20230821183733.106619-9-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230821183733.106619-9-hannes@cmpxchg.org> X-Rspam-User: X-Stat-Signature: r87h4mydoamro43hthbhk66jjc9ks3hi X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5484F160019 X-HE-Tag: 1692830523-210525 X-HE-Meta: U2FsdGVkX1/G8snQVIYfbx270ounAytbliWz0yUo2nO25pT9zKle53fg6aJkMtakvGvQPwqyFsmXhTneXV/mfZtaGSYmyWgveD0MBZm0yg+SgelAn2ZQNFeEcsuLa9GG2n71ohYVzslN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LyDIFY+VFnMoDGzI/cgKxyXB68NfAvEvZw5pe5IkJNKwEPoehujiDadJYkCwYpYuPMFkubf/3kjTPrwMfwQEc+ARzmD7YtFlwW1S2wipVBHMcarj48JCRMLdyu5B6YEwWFjd0YIl8iux8gx7DQmV0QAkmAbZOX2CgiBdvXiIzuMMdqqZRsuNvjMlT3tlTHtVCtqg8aJYIGO4v8c1b7QYgc5ppUxaWhNMNjl 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 Johannes, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.5-rc7] [cannot apply to akpm-mm/mm-everything next-20230823] [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/Johannes-Weiner/mm-page_alloc-use-get_pfnblock_migratetype-where-pfn-available/20230822-024104 base: linus/master patch link: https://lore.kernel.org/r/20230821183733.106619-9-hannes%40cmpxchg.org patch subject: [PATCH 8/8] mm: page_alloc: consolidate free page accounting config: x86_64-randconfig-075-20230823 (https://download.01.org/0day-ci/archive/20230824/202308240628.YoW5rQTu-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230824/202308240628.YoW5rQTu-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308240628.YoW5rQTu-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/page_alloc.c:6702:2: error: call to undeclared function '__mod_zone_freepage_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] __mod_zone_freepage_state(zone, -MAX_ORDER_NR_PAGES, MIGRATE_MOVABLE); ^ mm/page_alloc.c:6702:2: note: did you mean '__mod_zone_page_state'? include/linux/vmstat.h:319:20: note: '__mod_zone_page_state' declared here static inline void __mod_zone_page_state(struct zone *zone, ^ mm/page_alloc.c:6754:2: error: call to undeclared function '__mod_zone_freepage_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] __mod_zone_freepage_state(zone, MAX_ORDER_NR_PAGES, MIGRATE_MOVABLE); ^ 2 errors generated. vim +/__mod_zone_freepage_state +6702 mm/page_alloc.c dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6681 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6682 static bool try_to_accept_memory_one(struct zone *zone) dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6683 { dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6684 unsigned long flags; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6685 struct page *page; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6686 bool last; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6687 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6688 if (list_empty(&zone->unaccepted_pages)) dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6689 return false; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6690 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6691 spin_lock_irqsave(&zone->lock, flags); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6692 page = list_first_entry_or_null(&zone->unaccepted_pages, dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6693 struct page, lru); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6694 if (!page) { dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6695 spin_unlock_irqrestore(&zone->lock, flags); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6696 return false; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6697 } dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6698 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6699 list_del(&page->lru); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6700 last = list_empty(&zone->unaccepted_pages); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6701 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 @6702 __mod_zone_freepage_state(zone, -MAX_ORDER_NR_PAGES, MIGRATE_MOVABLE); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6703 __mod_zone_page_state(zone, NR_UNACCEPTED, -MAX_ORDER_NR_PAGES); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6704 spin_unlock_irqrestore(&zone->lock, flags); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6705 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6706 accept_page(page, MAX_ORDER); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6707 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6708 __free_pages_ok(page, MAX_ORDER, FPI_TO_TAIL); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6709 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6710 if (last) dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6711 static_branch_dec(&zones_with_unaccepted_pages); dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6712 dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6713 return true; dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6714 } dcdfdd40fa82b6 Kirill A. Shutemov 2023-06-06 6715 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki