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 D075AC19F2A for ; Sun, 7 Aug 2022 08:40:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A85F8E0002; Sun, 7 Aug 2022 04:40:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2583A8E0001; Sun, 7 Aug 2022 04:40:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 120B78E0002; Sun, 7 Aug 2022 04:40:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id F2D9B8E0001 for ; Sun, 7 Aug 2022 04:40:31 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id BF74F40722 for ; Sun, 7 Aug 2022 08:40:31 +0000 (UTC) X-FDA: 79772150262.13.05D1220 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf03.hostedemail.com (Postfix) with ESMTP id 136C82001D for ; Sun, 7 Aug 2022 08:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659861631; x=1691397631; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zbjwoVkmrnY9d5tbbfVbu86HN2692MVb1+gQEclP/fE=; b=UyZu08WPG/i6rX5YvOkObLwPzskbLXBJFV0bYAhJ9syIEQusa4c5OCSA PZJ1+o2U6Ai+Nmb2nnGwj49MOGey3iLahF7JIXCi7ghkFE6h7spj0eXpe Jd9lfuFmlrucOdMf+V3lyoLhv9NKusdRakMA6wD74TIjKnl5w9MqK6+7u 96W+MEEKqpWbXYpgc4ziYGgMfYZEMji+r8oDzwOO0oGmXBpBFwVmdpw7x QgNic9BujWjYIneXJiQ6+4N747zkunr/rit1++QZzk6DKj19JDPKdFlLr w9MgzNpQqlcMKv0vzZ/usap+Kwo0cZLtLAtO9pnrIp7ArMxCRXyNHD+rU Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10431"; a="352146612" X-IronPort-AV: E=Sophos;i="5.93,219,1654585200"; d="scan'208";a="352146612" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2022 01:40:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,219,1654585200"; d="scan'208";a="693432924" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 07 Aug 2022 01:40:27 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oKbpi-000LAV-1f; Sun, 07 Aug 2022 08:40:26 +0000 Date: Sun, 7 Aug 2022 16:39:33 +0800 From: kernel test robot To: Hao Lee , akpm@linux-foundation.org Cc: kbuild-all@lists.01.org, david@redhat.com, yang.shi@linux.alibaba.com, hannes@cmpxchg.org, haolee.swjtu@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: add DEVICE_ZONE to FOR_ALL_ZONES Message-ID: <202208071635.HaS64efE-lkp@intel.com> References: <20220804074730.GA3269@haolee.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220804074730.GA3269@haolee.io> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1659861631; a=rsa-sha256; cv=none; b=NIVapn9J2OeMi4sbFG1RSovCb11ob21cgYYmWJGI6+lBRDGYdrtoz2smMun6kDA8DrK9HI D7+9uON4ksppX+kc8KDHaEvY9dOozm5PjmIKLRxoRegE3WDpi2JUS8cFhBCt5OknVY1NpO TVq3ohdFJgPYgiAEF5dho0n3FxAwaTQ= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=UyZu08WP; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 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=1659861631; 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=qZ4P/7Sh10pN98Xctpevcckbl3gD5omz04YW9SLgpOc=; b=Y3GN+S1amwj4fTL4zRGsUmZ93s0Q9ORvSPuHFOr/659pTcao46CxfZDWl2Y1On6BPe5i7D TV7vs0I37ukU+ybhEBMywKHG0qLJ9JWNvNmlLou/XKlnBz8jnnIXxv0Gdz1ArW/3J2owbg PVtm9IPWyBXNX+6oCfoy4LltTfCvK+M= X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 136C82001D Authentication-Results: imf03.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=UyZu08WP; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Stat-Signature: qxunzw49akehuqktb6ysm877og3sgm7j X-HE-Tag: 1659861630-83277 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 Hao, 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/Hao-Lee/mm-add-DEVICE_ZONE-to-FOR_ALL_ZONES/20220804-154805 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220807/202208071635.HaS64efE-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/dba18359aee97f43008e19ffa78421e652b1b102 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hao-Lee/mm-add-DEVICE_ZONE-to-FOR_ALL_ZONES/20220804-154805 git checkout dba18359aee97f43008e19ffa78421e652b1b102 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 prepare If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/memcontrol.h:14, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/x86/kernel/asm-offsets.c:13: include/linux/vm_event_item.h:29:27: error: expected identifier before '(' token 29 | #define FOR_ALL_ZONES(xx) (DMA_ZONE(xx) DMA32_ZONE(xx) xx##_NORMAL, \ | ^ include/linux/vm_event_item.h:33:17: note: in expansion of macro 'FOR_ALL_ZONES' 33 | FOR_ALL_ZONES(PGALLOC), | ^~~~~~~~~~~~~ In file included from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/x86/kernel/asm-offsets.c:13: >> include/linux/memcontrol.h:86:40: error: 'NR_VM_EVENT_ITEMS' undeclared here (not in a function); did you mean 'NR_VM_NUMA_EVENT_ITEMS'? 86 | unsigned long events[NR_VM_EVENT_ITEMS]; | ^~~~~~~~~~~~~~~~~ | NR_VM_NUMA_EVENT_ITEMS make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1200: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +86 include/linux/memcontrol.h 33398cf2f360c5 Michal Hocko 2015-09-08 82 871789d4af807d Chris Down 2019-05-14 83 struct memcg_vmstats_percpu { 2d146aa3aa842d Johannes Weiner 2021-04-29 84 /* Local (CPU and cgroup) page state & events */ 2d146aa3aa842d Johannes Weiner 2021-04-29 85 long state[MEMCG_NR_STAT]; e27be240df53f1 Johannes Weiner 2018-04-10 @86 unsigned long events[NR_VM_EVENT_ITEMS]; 2d146aa3aa842d Johannes Weiner 2021-04-29 87 2d146aa3aa842d Johannes Weiner 2021-04-29 88 /* Delta calculation for lockless upward propagation */ 2d146aa3aa842d Johannes Weiner 2021-04-29 89 long state_prev[MEMCG_NR_STAT]; 2d146aa3aa842d Johannes Weiner 2021-04-29 90 unsigned long events_prev[NR_VM_EVENT_ITEMS]; 2d146aa3aa842d Johannes Weiner 2021-04-29 91 2d146aa3aa842d Johannes Weiner 2021-04-29 92 /* Cgroup1: threshold notifications & softlimit tree updates */ 33398cf2f360c5 Michal Hocko 2015-09-08 93 unsigned long nr_page_events; 33398cf2f360c5 Michal Hocko 2015-09-08 94 unsigned long targets[MEM_CGROUP_NTARGETS]; 33398cf2f360c5 Michal Hocko 2015-09-08 95 }; 33398cf2f360c5 Michal Hocko 2015-09-08 96 -- 0-DAY CI Kernel Test Service https://01.org/lkp