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 8F8FFECAAA1 for ; Tue, 30 Aug 2022 15:24:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF1ED6B0074; Tue, 30 Aug 2022 11:24:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BA1E08D0002; Tue, 30 Aug 2022 11:24:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A41808D0001; Tue, 30 Aug 2022 11:24:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 940146B0074 for ; Tue, 30 Aug 2022 11:24:28 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4210A1404C8 for ; Tue, 30 Aug 2022 15:24:28 +0000 (UTC) X-FDA: 79856630616.16.A05BB4D Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf17.hostedemail.com (Postfix) with ESMTP id 01F3040036 for ; Tue, 30 Aug 2022 15:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661873065; x=1693409065; h=date:from:to:cc:subject:message-id:mime-version; bh=8boZSu2nryzAU/Wd5+kzEd+SsmtPW55nD/1x2YLc6Rw=; b=GlIZPk0NED4T/zq90Dx3Ftv7LyxqtE9tosfkWOhih8QefVy+KIUVOT3T aO4PVJ0ONQnl0GuPOZvcqtU2kUPYo5zIIbfNLF9jMKP7rNjLN1Jk8O0SD vcKTlPjHc+6A8bMrOqUfMDXQwC3DUd3NXP2hAYysTkznted1i2K1EJAIR ImqSBoWx+ef3TEOJht6UFjKfrQWrio1RuJJq+RpoPr6e5vHk93lixOj/q eDiHEJeMToU/p8xwlhGG2xb1atzq/reCRw2yxyJv++QJCInPMW1HVkvfX Njc0RxQ1OMmInkBg0cac9AGcECj0mit61lA0zbSAMA85HjkfBODKFfX28 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="278222792" X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="278222792" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 08:24:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="754067143" Received: from lkp-server02.sh.intel.com (HELO 77b6d4e16fc5) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 30 Aug 2022 08:24:21 -0700 Received: from kbuild by 77b6d4e16fc5 with local (Exim 4.96) (envelope-from ) id 1oT36D-0000M3-0M; Tue, 30 Aug 2022 15:24:21 +0000 Date: Tue, 30 Aug 2022 23:23:33 +0800 From: kernel test robot To: "Aneesh Kumar K.V" Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 3575/3976] mm/memory-tiers.c:647:49: error: 'top_tier_adistance' undeclared Message-ID: <202208302355.iv88x9c8-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661873065; a=rsa-sha256; cv=none; b=IkYQnpp3IgDtgYXXy+4lpHFxhtYUpzZqvYrqquPM82cDMzD++nnHz0Bl0r0CGYHkKpEYwb gKgQ3h8OXyug3MrDziED8BBG4E87ehTXs0vtB3gQkHwHBElZzwB2cmeKBjQDoJ675SBLnc 8RLqjW4kczy4g/71D2RC+hbipxYyycM= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=GlIZPk0N; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none); spf=softfail (imf17.hostedemail.com: 134.134.136.126 is neither permitted nor denied by domain of lkp@intel.com) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661873065; 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: references:dkim-signature; bh=/9r8nQemJfA/WiAG1u+Ck3ExBDG7CnTevC5rl2vqzs4=; b=4s7+qBoFcqfvvyCxjQ83BzadLJuq5IngY2AZ2yBUp21rZmLGircbuAUPrGRsY3ldBTz4iw Uievy94T5mw8Ba6c/LRftF5keBV5xu1pHndMPwaEvOasc+nT81zoFiZB7xwml50rmEczB2 g3q+a26i+lTs23wzqOGMl5s3ugs3TRw= X-Rspam-User: Authentication-Results: imf17.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=GlIZPk0N; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none); spf=softfail (imf17.hostedemail.com: 134.134.136.126 is neither permitted nor denied by domain of lkp@intel.com) smtp.mailfrom=lkp@intel.com X-Stat-Signature: ndwoudoq7acnu4ex1ys8ir9yn8ysc64r X-Rspamd-Queue-Id: 01F3040036 X-Rspamd-Server: rspam07 X-HE-Tag: 1661873064-525902 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 282342f2dc97ccf54254c5de51bcc1101229615f commit: 2ec921a84615ee0665bcc369d40b92e2bed66cd5 [3575/3976] mm/demotion: expose memory tier details via sysfs config: loongarch-randconfig-r003-20220830 (https://download.01.org/0day-ci/archive/20220830/202208302355.iv88x9c8-lkp@intel.com/config) compiler: loongarch64-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2ec921a84615ee0665bcc369d40b92e2bed66cd5 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2ec921a84615ee0665bcc369d40b92e2bed66cd5 # save the config file COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 ARCH=loongarch If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): mm/memory-tiers.c: In function 'toptier_nodes_show': >> mm/memory-tiers.c:647:49: error: 'top_tier_adistance' undeclared (first use in this function) 647 | if (memtier->adistance_start >= top_tier_adistance) | ^~~~~~~~~~~~~~~~~~ mm/memory-tiers.c:647:49: note: each undeclared identifier is reported only once for each function it appears in vim +/top_tier_adistance +647 mm/memory-tiers.c 637 638 static ssize_t toptier_nodes_show(struct device *dev, 639 struct device_attribute *attr, char *buf) 640 { 641 int ret; 642 nodemask_t nmask, top_tier_mask = NODE_MASK_NONE; 643 struct memory_tier *memtier = to_memory_tier(dev); 644 645 mutex_lock(&memory_tier_lock); 646 list_for_each_entry(memtier, &memory_tiers, list) { > 647 if (memtier->adistance_start >= top_tier_adistance) 648 break; 649 nmask = get_memtier_nodemask(memtier); 650 nodes_or(top_tier_mask, top_tier_mask, nmask); 651 } 652 653 ret = sysfs_emit(buf, "%*pbl\n", nodemask_pr_args(&top_tier_mask)); 654 mutex_unlock(&memory_tier_lock); 655 return ret; 656 } 657 static DEVICE_ATTR_RO(toptier_nodes); 658 -- 0-DAY CI Kernel Test Service https://01.org/lkp