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 6FA1BC43334 for ; Fri, 1 Jul 2022 02:52:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E9AD26B0074; Thu, 30 Jun 2022 22:52:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E21626B0075; Thu, 30 Jun 2022 22:52:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC0996B0078; Thu, 30 Jun 2022 22:52:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id B75B36B0074 for ; Thu, 30 Jun 2022 22:52:26 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7E00220903 for ; Fri, 1 Jul 2022 02:52:26 +0000 (UTC) X-FDA: 79637007492.01.C43A95E Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf30.hostedemail.com (Postfix) with ESMTP id F191F80048 for ; Fri, 1 Jul 2022 02:52: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=1656643945; x=1688179945; h=date:from:to:cc:subject:message-id:mime-version; bh=WVU8yHmS1nQBJzJn5NNY0EdaDHKuj8x8PNYnRqrvzZQ=; b=C/pImsryEYiC/NYQZpmoKpx3zqkzz24Y0TCU+mWEqKjWTF4kHCrNFSrK OtsxmQhuIXWocYI7GpartjHBidQwqCwYL7Kd7UYX8hq04xY/0p1xLAq5r l8YLHqMJdLB6HoaRbkGHeDvANLPgex/4jbcdrmMmTGslKGLgTYyNPNBlo ZWNA1PGMls3wriZoKkgJKOnkNqgnJb704CC/i18H4ANxSY0F3/YyacP3a 6LcChYQLMcCcGeO+A9lj7eyRB6tV5YliSjZSSW4BuXXEx3q/A74EHKgXL JwMUr4n1kjfoBXhzQKgB+o9W6JNmEPH7tgR3axum2AkQ5mE3lwnjUeFZe Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10394"; a="282565840" X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="282565840" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 19:52:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,236,1650956400"; d="scan'208";a="694324425" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 30 Jun 2022 19:52:21 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o76lZ-000DSW-A9; Fri, 01 Jul 2022 02:52:21 +0000 Date: Fri, 1 Jul 2022 10:51:51 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , "Matthew Wilcox (Oracle)" , Lukas Bulwahn Subject: [linux-next:master 6615/7019] lib/maple_tree.c:5506:69: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202207011057.50iOfKNC-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="C/pImsry"; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656643946; 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=Mbd2ljcWKRiT7XzVYUNgfC53fMy0MGHpw3d9Z0yiK04=; b=nVkhcvVZtKkw4Rbf0IPYhPHoFEm8tN+6TSrTcOIk0uPsYl5PWlngvjC1UFeli52t5YQMdM 2Bu8HaPlLhYLnzy5WqbVqOrP2nh9HTjY8ctUdGKDbp0dmjbmqpxoLAYUrsQ7+PAZYPqQm7 2cQJR0qfgSWFVawkXbuA6Dp5wwXdMa4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656643946; a=rsa-sha256; cv=none; b=oC03PaT45QJMI7YrpBxAOojCa4B82F6M7QVfnlCiralmt0cKNVAEG/TKi4yudL9u9a3+UO 6XFvVUsVYO568gVMUN2el7bSgHNcz3xhPIL2Lz9Oq4kxTzyqLLhWVWjWT8+X37X3pIj5A8 KmUXxA4QpWNDKu9xqHYkSaZKAJtZn2g= X-Stat-Signature: k1kwkbt4rxqb1hws47fdzufb63mh991z X-Rspamd-Queue-Id: F191F80048 Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="C/pImsry"; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam12 X-Rspam-User: X-HE-Tag: 1656643944-221418 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: 6cc11d2a1759275b856e464265823d94aabd5eaf commit: 8914dcab0cdce258effdba984db9d9eb8fddb391 [6615/7019] Maple Tree: add new data structure config: sparc-randconfig-s031-20220629 (https://download.01.org/0day-ci/archive/20220701/202207011057.50iOfKNC-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 11.3.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8914dcab0cdce258effdba984db9d9eb8fddb391 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 8914dcab0cdce258effdba984db9d9eb8fddb391 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc 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 >>) >> lib/maple_tree.c:5506:69: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct maple_enode const *entry @@ got void [noderef] __rcu * @@ lib/maple_tree.c:5506:69: sparse: expected struct maple_enode const *entry lib/maple_tree.c:5506:69: sparse: got void [noderef] __rcu * lib/maple_tree.c:5507:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct maple_enode const *entry @@ got void [noderef] __rcu * @@ lib/maple_tree.c:5507:38: sparse: expected struct maple_enode const *entry lib/maple_tree.c:5507:38: sparse: got void [noderef] __rcu * >> lib/maple_tree.c:2322:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **l_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2322:17: sparse: expected void **l_slots lib/maple_tree.c:2322:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2325:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **r_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2325:17: sparse: expected void **r_slots lib/maple_tree.c:2325:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2329:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2329:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2329:57: sparse: got void **l_slots >> lib/maple_tree.c:2333:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2333:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2333:57: sparse: got void **r_slots lib/maple_tree.c:2351:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2351:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2351:57: sparse: got void **l_slots lib/maple_tree.c:2358:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2358:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2358:57: sparse: got void **r_slots >> lib/maple_tree.c:2322:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **l_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2322:17: sparse: expected void **l_slots lib/maple_tree.c:2322:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2325:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **r_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2325:17: sparse: expected void **r_slots lib/maple_tree.c:2325:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2329:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2329:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2329:57: sparse: got void **l_slots >> lib/maple_tree.c:2333:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2333:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2333:57: sparse: got void **r_slots lib/maple_tree.c:2351:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2351:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2351:57: sparse: got void **l_slots lib/maple_tree.c:2358:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2358:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2358:57: sparse: got void **r_slots lib/maple_tree.c:5444:9: sparse: sparse: context imbalance in 'mt_free_walk' - different lock contexts for basic block vim +5506 lib/maple_tree.c 5472 5473 static void mt_destroy_walk(struct maple_enode *enode, unsigned char ma_flags, 5474 bool free) 5475 { 5476 void __rcu **slots; 5477 struct maple_node *node = mte_to_node(enode); 5478 struct maple_enode *start; 5479 struct maple_tree mt; 5480 5481 MA_STATE(mas, &mt, 0, 0); 5482 5483 if (mte_is_leaf(enode)) 5484 goto free_leaf; 5485 5486 mt_init_flags(&mt, ma_flags); 5487 mas_lock(&mas); 5488 5489 mas.node = start = enode; 5490 slots = mas_destroy_descend(&mas, start, 0); 5491 node = mas_mn(&mas); 5492 do { 5493 enum maple_type type; 5494 unsigned char offset; 5495 5496 node->slot_len = mas_dead_leaves(&mas, slots); 5497 if (free) 5498 mt_free_bulk(node->slot_len, slots); 5499 offset = node->parent_slot + 1; 5500 mas.node = node->piv_parent; 5501 if (mas_mn(&mas) == node) 5502 goto start_slots_free; 5503 5504 type = mte_node_type(mas.node); 5505 slots = ma_slots(mte_to_node(mas.node), type); > 5506 if ((offset < mt_slots[type]) && mte_node_type(slots[offset]) && > 5507 mte_to_node(slots[offset])) { 5508 struct maple_enode *parent = mas.node; 5509 5510 mas.node = mas_slot_locked(&mas, slots, offset); 5511 slots = mas_destroy_descend(&mas, parent, offset); 5512 } 5513 node = mas_mn(&mas); 5514 } while (start != mas.node); 5515 5516 node = mas_mn(&mas); 5517 node->slot_len = mas_dead_leaves(&mas, slots); 5518 if (free) 5519 mt_free_bulk(node->slot_len, slots); 5520 5521 start_slots_free: 5522 mas_unlock(&mas); 5523 5524 free_leaf: 5525 if (free) 5526 mt_free_rcu(&node->rcu); 5527 } 5528 -- 0-DAY CI Kernel Test Service https://01.org/lkp