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 47F0BC4332F for ; Tue, 8 Mar 2022 19:14:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B5AD8D0007; Tue, 8 Mar 2022 14:14:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5EF898D0001; Tue, 8 Mar 2022 14:14:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 469B38D0007; Tue, 8 Mar 2022 14:14:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 378B38D0001 for ; Tue, 8 Mar 2022 14:14:47 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id EDA77246B8 for ; Tue, 8 Mar 2022 19:14:46 +0000 (UTC) X-FDA: 79222170972.06.F379A20 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf14.hostedemail.com (Postfix) with ESMTP id 2FA9910000A for ; Tue, 8 Mar 2022 19:14:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646766886; x=1678302886; h=date:from:to:cc:subject:message-id:mime-version; bh=L+gpSj+pPQl5DMIPXZmQxYL82Vfx6CAWAydGcCei1i8=; b=kF1m95rsMpyP/G6Ud0Xlt+5ID5cMdRbPYegdGkYUjjC4iZAmrE/LCA5z SzoDIMPImG5oqCChyZkTnRX23TMwRWy1bBHNP+c4jSJU7fnZ430IbFNDu 404NoOcMbcehHODMouWrh5gM2+iTec6YgVIryZ84D6wcYHlP1lJWrKeoA To6aO3KVlOURKIt6wBw7Ma8tNxWhDZ0FciL6PyQhGctGNBsvSy0EtnyFn 94W81KcWlZ2tCBNlJvWCwolinDmBfbmcXUvedgd+twhzOzJEYLypCBR0n PqTaP/H8QctwH89BbSUg6eML9xoWayyCPnxyu0z3jNVqLSRMBj77bQmzW Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="315505739" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="315505739" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 11:14:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="495570750" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2022 11:14:36 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRfI3-0001rE-IT; Tue, 08 Mar 2022 19:14:35 +0000 Date: Wed, 9 Mar 2022 03:14:32 +0800 From: kernel test robot To: Huang Ying Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mel Gorman , Andrew Morton , Linux Memory Management List Subject: include/linux/pgtable.h:257:16: sparse: sparse: cast to non-scalar Message-ID: <202203090359.xgOwYxvo-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 2FA9910000A X-Rspam-User: Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=kF1m95rs; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: bqcs5ps1pemq8d7a7nokf4kxita5yjae X-HE-Tag: 1646766886-866234 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/torvalds/linux.git master head: ea4424be16887a37735d6550cfd0611528dbe5d9 commit: b99a342d4f11a5455d999b12f5fee42ab6acaf8c NUMA balancing: reduce TLB flush via delaying mapping on hint page fault date: 10 months ago config: alpha-randconfig-s031-20220308 (https://download.01.org/0day-ci/archive/20220309/202203090359.xgOwYxvo-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b99a342d4f11a5455d999b12f5fee42ab6acaf8c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b99a342d4f11a5455d999b12f5fee42ab6acaf8c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) mm/memory.c:949:17: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block mm/memory.c:1629:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block mm/memory.c:1678:9: sparse: sparse: context imbalance in 'insert_page' - different lock contexts for basic block mm/memory.c:2180:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block mm/memory.c:2436:17: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock mm/memory.c:2692:17: sparse: sparse: context imbalance in 'wp_page_copy' - unexpected unlock mm/memory.c:3038:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock mm/memory.c:3101:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block mm/memory.c: note: in included file (through include/linux/mm.h, arch/alpha/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): >> include/linux/pgtable.h:257:16: sparse: sparse: cast to non-scalar >> include/linux/pgtable.h:257:16: sparse: sparse: cast from non-scalar mm/memory.c:4660:5: sparse: sparse: context imbalance in 'follow_invalidate_pte' - different lock contexts for basic block mm/memory.c:4781:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock vim +257 include/linux/pgtable.h e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 253 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 254 #ifndef __HAVE_ARCH_PTEP_GET 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 255 static inline pte_t ptep_get(pte_t *ptep) 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 256 { 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 @257 return READ_ONCE(*ptep); 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 258 } 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 259 #endif 481e980a7c199c include/linux/pgtable.h Christophe Leroy 2020-06-15 260 :::::: The code at line 257 was first introduced by commit :::::: 481e980a7c199c5a4634fd7ea308067dd4ba75fa mm: Allow arches to provide ptep_get() :::::: TO: Christophe Leroy :::::: CC: Michael Ellerman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org