* [linux-next:master 3575/3976] mm/memory-tiers.c:647:49: error: 'top_tier_adistance' undeclared
@ 2022-08-30 15:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-30 15:23 UTC (permalink / raw)
To: Aneesh Kumar K.V; +Cc: kbuild-all, Linux Memory Management List, Andrew Morton
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 <lkp@intel.com>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-30 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30 15:23 [linux-next:master 3575/3976] mm/memory-tiers.c:647:49: error: 'top_tier_adistance' undeclared kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).