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 9B01AECAAD5 for ; Tue, 30 Aug 2022 19:25:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 152BA6B0073; Tue, 30 Aug 2022 15:25:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0FF818D0001; Tue, 30 Aug 2022 15:25:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F0AA66B0075; Tue, 30 Aug 2022 15:25:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E17496B0073 for ; Tue, 30 Aug 2022 15:25:33 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 97F65805F9 for ; Tue, 30 Aug 2022 19:25:33 +0000 (UTC) X-FDA: 79857238146.15.C133B05 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf28.hostedemail.com (Postfix) with ESMTP id 0ED30C0026 for ; Tue, 30 Aug 2022 19:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661887532; x=1693423532; h=date:from:to:cc:subject:message-id:mime-version; bh=QZqqfkBHhhYQi5HA7eLeFvajNA+cybZCZXRV9/tCCmk=; b=ntLKjyK0NEIVTd3fQNpCT4GKGriAP4L/v1QPUAwCzRMd9h6UdV2uej3Q YE7v8Y0viWcDYcN3kyMBtbpgJ+7GvBET72YcpgCQUMBq6EBYHAgeQkgxa OcDTj1x9gVGYfg1no4Yqrd2sMmJBBlf7MykyBG9yfeTXROdQrtEodC1YQ QET6Ual6e7gNDlJUSLwMKySNXlyHm2sU320avNPMPhZS5RB1KkcmXOIhN kE2x7iz0/71Us1cgr09JrgU/XUASxMBeZ7Mk6zoqIBPzpVq06VazSgF/C ozUXnIvGq9JFWAY2HEtLr0RA8eleNB1nouH9DEsMUE5t8peJNPAG7epgd A==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="275681489" X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="275681489" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 12:25:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="641527978" Received: from lkp-server02.sh.intel.com (HELO 77b6d4e16fc5) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 30 Aug 2022 12:25:29 -0700 Received: from kbuild by 77b6d4e16fc5 with local (Exim 4.96) (envelope-from ) id 1oT6rY-0000Wt-1N; Tue, 30 Aug 2022 19:25:28 +0000 Date: Wed, 31 Aug 2022 03:25:27 +0800 From: kernel test robot To: "Aneesh Kumar K.V" Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 3575/3976] mm/memory-tiers.c:647:35: error: use of undeclared identifier 'top_tier_adistance' Message-ID: <202208310340.bfIiSHdK-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=1661887532; a=rsa-sha256; cv=none; b=11FkMS+owrjrtxJhGL29x3foyrbMfvCKXXi0R5XFgqk17NlKfW1wcJdYdRLCHs+SYRQW5E 8bsT8zqNRxb2bYVdruWm7OaPFFE99BNer/fgu3UJXOIKMgmnb+ooPh1AxYJsdyWPcBINZC XBV2C/n/yDXWGeqCqWDH/oJYDZUyKE0= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ntLKjyK0; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 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=1661887532; 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=YsuMH17BOln6b9Qlig7+F7z1U2AQc1myc+CjKz5oufU=; b=whxxtqz9NdqsmlHpdTFXt6RetVuFhsTol84/efJLPtX28hJfI/nI74G5B/Ve+M+EmDA7NA 8/ULZsQw7rSIWc9jT6JkyTM7NtCXRIwtUHPrVkWQxVAPegvM4tMXLMKRg6fgqlrnP3E653 DCl45d/LLFjBgZwp+YFbXjkOFQuVgb4= X-Rspam-User: Authentication-Results: imf28.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ntLKjyK0; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com X-Stat-Signature: dhg8j8ybjmq9odcjymw49aw8zoz5ne5e X-Rspamd-Queue-Id: 0ED30C0026 X-Rspamd-Server: rspam07 X-HE-Tag: 1661887531-23205 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: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220831/202208310340.bfIiSHdK-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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 mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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/memory-tiers.c:647:35: error: use of undeclared identifier 'top_tier_adistance' if (memtier->adistance_start >= top_tier_adistance) ^ 1 error generated. 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