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 4BC94C433EF for ; Wed, 22 Jun 2022 22:53:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AF0A18E00FB; Wed, 22 Jun 2022 18:53:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A79838E00FA; Wed, 22 Jun 2022 18:53:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8F4678E00FB; Wed, 22 Jun 2022 18:53:48 -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 7BAA48E00FA for ; Wed, 22 Jun 2022 18:53:48 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4AE6B34DAF for ; Wed, 22 Jun 2022 22:53:48 +0000 (UTC) X-FDA: 79607375736.10.7B558B5 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf30.hostedemail.com (Postfix) with ESMTP id 4448580012 for ; Wed, 22 Jun 2022 22:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655938425; x=1687474425; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XlQvUoHIyljwFR5TR2Yyoy6OdtmMrypdx8HArayAsyQ=; b=Wq/4hrx3YCbl4P0v+CA3LXf2YjACMzl3QwpEgvU86aT++vnJHyALHKDI QiW4qDcAQnGKGvC5lId0BY8szl9Y3FRLZIA6/+wLBSxpza2VosZl4z4dl 80zIJ96jphXqQkgXGCyZloE7720CwWdTRASTIzCkPhNMRvEDGSBxLOo3R DhLUVVZlqVAxfq+wIq3HempZv9rroK7Iio9bhtjl3Dnmf7i4rjRmjGK6h c4b6BVd63peSIXFcryUzekH2RFjcN7v5paQjlCoJcNoz+0w/Ek+Nc0bpr +mJoB7HDyh0vYRAL/+z5PM5CLBg4xQjFX0CHoDBJOdTSi39FTNpCz6Rni w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="306024198" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="306024198" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 15:53:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="765073492" Received: from lkp-server02.sh.intel.com (HELO a67cc04a5eeb) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 22 Jun 2022 15:53:37 -0700 Received: from kbuild by a67cc04a5eeb with local (Exim 4.95) (envelope-from ) id 1o49E9-0001mj-1c; Wed, 22 Jun 2022 22:53:37 +0000 Date: Thu, 23 Jun 2022 06:52:42 +0800 From: kernel test robot To: "Aneesh Kumar K.V" , linux-mm@kvack.org, akpm@linux-foundation.org Cc: kbuild-all@lists.01.org, Wei Xu , Huang Ying , Yang Shi , Davidlohr Bueso , Tim C Chen , Michal Hocko , Linux Kernel Mailing List , Hesham Almatary , Dave Hansen , Jonathan Cameron , Alistair Popple , Dan Williams , "Aneesh Kumar K.V" Subject: Re: [PATCH v7 08/12] mm/demotion: Add pg_data_t member to track node memory tier details Message-ID: <202206230603.yUtYS0xk-lkp@intel.com> References: <20220622082513.467538-9-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622082513.467538-9-aneesh.kumar@linux.ibm.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655938428; a=rsa-sha256; cv=none; b=TzMw7Nx3OJLFROaCVreWKr0vLUYj7MmmDE/4vMdUCSw3gfbXzg2hyC2T7H526Ul4deAWLD C+s1zBpJ8Bw9BzaB8JPq7eHsjm6rj/+zmmsgEc+dGRZ3xDWhcRSo0w7ZeXoK0EPBIlZspc GEWVrpF5aHHVs/Kf2cWkwG3L6bukJdY= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Wq/4hrx3"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655938428; 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=LDO7SJoXq4vXuAjxnGyRaun8rNtutDKRDAdPSsqChnA=; b=gZnIiSliCDq9NlBKCclp6DdUPeM2wBi2tPQIzlNX/lJrIvNcnutO1L4620GnF0JIo4Nx5W LXSLxMm0JbKm8mwMLZl2pl4/aB/+bEIUEA6B7XYXBnIK47wUs2uG0gFWWzgqlWfkbfuF6S p2Bp/AXWObORqUbFEZGtDgq0x0Ntq98= X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 4448580012 Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Wq/4hrx3"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com X-Stat-Signature: mhx73mjp747qmzbyrkrprc6a1atytioe X-Rspam-User: X-HE-Tag: 1655938425-302011 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 "Aneesh, I love your patch! Perhaps something to improve: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Aneesh-Kumar-K-V/mm-demotion-Memory-tiers-and-demotion/20220622-163031 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20220623/202206230603.yUtYS0xk-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-31-g4880bd19-dirty # https://github.com/intel-lab-lkp/linux/commit/97a1874c652abe1500768e5cab39b2d3dcdfb046 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Aneesh-Kumar-K-V/mm-demotion-Memory-tiers-and-demotion/20220622-163031 git checkout 97a1874c652abe1500768e5cab39b2d3dcdfb046 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 sparse warnings: (new ones prefixed by >>) >> mm/memory-tiers.c:182:16: sparse: sparse: incompatible types in comparison expression (different address spaces): >> mm/memory-tiers.c:182:16: sparse: struct memory_tier [noderef] __rcu * >> mm/memory-tiers.c:182:16: sparse: struct memory_tier * mm/memory-tiers.c:214:27: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memory-tiers.c:214:27: sparse: struct memory_tier [noderef] __rcu * mm/memory-tiers.c:214:27: sparse: struct memory_tier * mm/memory-tiers.c:216:9: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memory-tiers.c:216:9: sparse: struct memory_tier [noderef] __rcu * mm/memory-tiers.c:216:9: sparse: struct memory_tier * mm/memory-tiers.c:221:9: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memory-tiers.c:221:9: sparse: struct memory_tier [noderef] __rcu * mm/memory-tiers.c:221:9: sparse: struct memory_tier * mm/memory-tiers.c:361:19: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memory-tiers.c:361:19: sparse: struct memory_tier [noderef] __rcu * mm/memory-tiers.c:361:19: sparse: struct memory_tier * mm/memory-tiers.c:614:17: sparse: sparse: incompatible types in comparison expression (different address spaces): mm/memory-tiers.c:614:17: sparse: struct memory_tier [noderef] __rcu * mm/memory-tiers.c:614:17: sparse: struct memory_tier * vim +182 mm/memory-tiers.c 169 170 static struct memory_tier *__node_get_memory_tier(int node) 171 { 172 pg_data_t *pgdat; 173 174 pgdat = NODE_DATA(node); 175 if (!pgdat) 176 return NULL; 177 /* 178 * Since we hold memory_tier_lock, we can avoid 179 * RCU read locks when accessing the details. No 180 * parallel updates are possible here. 181 */ > 182 return rcu_dereference_check(pgdat->memtier, 183 lockdep_is_held(&memory_tier_lock)); 184 } 185 -- 0-DAY CI Kernel Test Service https://01.org/lkp