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 DD25DD2CE12 for ; Tue, 22 Oct 2024 17:38:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5AE546B0085; Tue, 22 Oct 2024 13:38:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 55D8F6B0088; Tue, 22 Oct 2024 13:38:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 425FF6B0089; Tue, 22 Oct 2024 13:38:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 258376B0085 for ; Tue, 22 Oct 2024 13:38:59 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id AED574035C for ; Tue, 22 Oct 2024 17:38:49 +0000 (UTC) X-FDA: 82701948126.27.B2A1C26 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf21.hostedemail.com (Postfix) with ESMTP id 08B301C0003 for ; Tue, 22 Oct 2024 17:38:24 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ANWQxYPD; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) 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=1729618585; 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=KJsVVN2SA1NiFwGY1mqgxlBEgjtr3iMtnSeQOc5m3JE=; b=jJCVeYU8pYYAbrxBEFY49/W4WF2tlZn/z9PmtxnyDdHHyhzM4KUIWIhDAycM9oUIVxNGGE oiav9TJKJBevNdgdSH/XaaYRG7sp2PIyxv9ZFcU7BkJRy6KzbRL4Qc3sNfT8rC45LIcwMN Iym6aco5Vi+zGY4rmxua0LG6EYdf2rg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729618585; a=rsa-sha256; cv=none; b=mUkeSB5hN8qgXBk/X1HZe4hJ4sJjmR0v/CJGBPgftCPTZJ7nDsO+J+iHM9MERkIFpNq0ZW cu5DUXImESVYruC4zRtLlNdqkqMLMGfP8u22U7k/K69Kf61yTfdu6nFz+zs+U3mYgb9cxQ qSFBkbXRON6eRMtyh2A5zt9OYA+77Z4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ANWQxYPD; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729618736; x=1761154736; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yGBgtY1WeovcKvai4gRVnFgLPBd/TrBgV1BuJcnUtfE=; b=ANWQxYPDvTBtH+XQO2Q8tYwe6N9UqcsiQyDRiPxl8rtZpPMQS7e7gEQH P7ElQIfvJUH3N1oXzeEbveCfQMw3qU1rGI0JfiQSQ/dTjEu/rXJKPrz4K 2Jve4F7ZTwTAGheFDL53nvoBHFdQ/KBr6nLqno2qcQb13rTnhjd2jjDWA O99XgfPUJebwYWcmhi2iIr9d6jh8UfHJ9sTPbMjcoQa7YZa1CIAKcZkEP FcGL6aClNQ4NyW+4wCQQKqmQ1nu95OPCpBlmg2gnOuGUo4eMKJaQChu8F u5AnoiVHbbaSvCP+n0fDyWljWvU79vzIv0ktXMiagEhIzd2yfq8NBkIiA Q==; X-CSE-ConnectionGUID: NqBIq7p1SeqR6NhUtDrXHA== X-CSE-MsgGUID: gVS7dr5XRUSmBEWoKrt4Sw== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29048613" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29048613" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2024 10:38:53 -0700 X-CSE-ConnectionGUID: L2f/KJ/QTy2uI+2p0hQCBA== X-CSE-MsgGUID: TgPfvSFLR4C5gBh4gce7jQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,223,1725346800"; d="scan'208";a="103234596" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 22 Oct 2024 10:38:52 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t3IqH-000Tsx-0h; Tue, 22 Oct 2024 17:38:49 +0000 Date: Wed, 23 Oct 2024 01:37:50 +0800 From: kernel test robot To: Wei Yang , akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: oe-kbuild-all@lists.linux.dev, maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang , "Liam R . Howlett" , Sidhartha Kumar , Lorenzo Stoakes Subject: Re: [PATCH v4 5/5] maple_tree: add a test checking storing null Message-ID: <202410230105.UApdwd9S-lkp@intel.com> References: <20241019023716.4516-6-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241019023716.4516-6-richard.weiyang@gmail.com> X-Stat-Signature: conbb8ccenw75izs5sa1uc35r6my3stz X-Rspamd-Queue-Id: 08B301C0003 X-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rkCqSAWaPAyPANJMgvOaJPUeaSGeaZoW5QOQKTON0F0cLxUEJ22XNOT332ahMnUky+UM5g8eKpPK2aq18YdUZj/1ThEhPTOO5HzQ1sbrFel75Ul4r+Ak4sN5U/Lx5rh/pXylJBpWJ5wPUHQykMT8znNFxJ/zNbvt7//q+lvYg4hj5AwASJWXQEzC7vsY8OjQn24tbvXLj1cXnImrlccyXPcSDFS4+PzIYkhsuS1OGfluBtxEXyshC5YdUECiSe6eFwKATOuTSFibXF22yB7o5kEjx8MrkJrqy8a2/0GfzB1nCtNCnkr2+ELZNTPFI2aLh2chFmOGH0HTlRFu3tg3OtFBN9ATZcU2mHkRrFAWGZKeSWNl2YPcFduV0maBRfYn5KwiOesK8qnp6SL1x9YruTdbHgbUwZN9JGHibTLDGopKtbRybWZTEo8Xtj4KRhkKAiOxpwmlIOTCC3oFlA== 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: List-Subscribe: List-Unsubscribe: Hi Wei, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-nonmm-unstable] [also build test WARNING on akpm-mm/mm-everything linus/master v6.12-rc4 next-20241022] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wei-Yang/maple_tree-print-empty-for-an-empty-tree-on-mt_dump/20241019-103832 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable patch link: https://lore.kernel.org/r/20241019023716.4516-6-richard.weiyang%40gmail.com patch subject: [PATCH v4 5/5] maple_tree: add a test checking storing null config: x86_64-randconfig-123-20241022 (https://download.01.org/0day-ci/archive/20241023/202410230105.UApdwd9S-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241023/202410230105.UApdwd9S-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202410230105.UApdwd9S-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> lib/test_maple_tree.c:1456:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *entry @@ got void [noderef] __rcu *ma_root @@ lib/test_maple_tree.c:1456:9: sparse: expected void const *entry lib/test_maple_tree.c:1456:9: sparse: got void [noderef] __rcu *ma_root >> lib/test_maple_tree.c:1456:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *entry @@ got void [noderef] __rcu *ma_root @@ lib/test_maple_tree.c:1456:9: sparse: expected void const *entry lib/test_maple_tree.c:1456:9: sparse: got void [noderef] __rcu *ma_root lib/test_maple_tree.c:1468:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *entry @@ got void [noderef] __rcu *ma_root @@ lib/test_maple_tree.c:1468:9: sparse: expected void const *entry lib/test_maple_tree.c:1468:9: sparse: got void [noderef] __rcu *ma_root lib/test_maple_tree.c:1468:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *entry @@ got void [noderef] __rcu *ma_root @@ lib/test_maple_tree.c:1468:9: sparse: expected void const *entry lib/test_maple_tree.c:1468:9: sparse: got void [noderef] __rcu *ma_root vim +1456 lib/test_maple_tree.c 1389 1390 static noinline void __init check_store_null(struct maple_tree *mt) 1391 { 1392 MA_STATE(mas, mt, 0, ULONG_MAX); 1393 1394 /* 1395 * Store NULL at range [0, ULONG_MAX] to an empty tree should result 1396 * in an empty tree 1397 */ 1398 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1399 mas_lock(&mas); 1400 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1401 MT_BUG_ON(mt, !mtree_empty(mt)); 1402 mas_unlock(&mas); 1403 mtree_destroy(mt); 1404 1405 /* 1406 * Store NULL at any range to an empty tree should result in an empty 1407 * tree 1408 */ 1409 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1410 mas_lock(&mas); 1411 mas_set_range(&mas, 3, 10); 1412 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1413 MT_BUG_ON(mt, !mtree_empty(mt)); 1414 mas_unlock(&mas); 1415 mtree_destroy(mt); 1416 1417 /* 1418 * Store NULL at range [0, ULONG_MAX] to a single entry tree should 1419 * result in an empty tree 1420 */ 1421 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1422 mas_lock(&mas); 1423 mas_set(&mas, 0); 1424 mas_store_gfp(&mas, &mas, GFP_KERNEL); 1425 mas_set_range(&mas, 0, ULONG_MAX); 1426 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1427 MT_BUG_ON(mt, !mtree_empty(mt)); 1428 mas_unlock(&mas); 1429 mtree_destroy(mt); 1430 1431 /* 1432 * Store NULL at range [0, n] to a single entry tree should 1433 * result in an empty tree 1434 */ 1435 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1436 mas_lock(&mas); 1437 mas_set(&mas, 0); 1438 mas_store_gfp(&mas, &mas, GFP_KERNEL); 1439 mas_set_range(&mas, 0, 5); 1440 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1441 MT_BUG_ON(mt, !mtree_empty(mt)); 1442 mas_unlock(&mas); 1443 mtree_destroy(mt); 1444 1445 /* 1446 * Store NULL at range [m, n] where m > 0 to a single entry tree 1447 * should still be a single entry tree 1448 */ 1449 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1450 mas_lock(&mas); 1451 mas_set(&mas, 0); 1452 mas_store_gfp(&mas, &mas, GFP_KERNEL); 1453 mas_set_range(&mas, 2, 5); 1454 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1455 MT_BUG_ON(mt, mtree_empty(mt)); > 1456 MT_BUG_ON(mt, xa_is_node(mt->ma_root)); 1457 mas_unlock(&mas); 1458 mtree_destroy(mt); 1459 1460 /* 1461 * Store NULL at range [0, ULONG_MAX] to a tree with node should 1462 * result in an empty tree 1463 */ 1464 mt_init_flags(mt, MT_FLAGS_ALLOC_RANGE); 1465 mas_lock(&mas); 1466 mas_set_range(&mas, 1, 3); 1467 mas_store_gfp(&mas, &mas, GFP_KERNEL); 1468 MT_BUG_ON(mt, !xa_is_node(mt->ma_root)); 1469 mas_set_range(&mas, 0, ULONG_MAX); 1470 mas_store_gfp(&mas, NULL, GFP_KERNEL); 1471 MT_BUG_ON(mt, !mtree_empty(mt)); 1472 mas_unlock(&mas); 1473 mtree_destroy(mt); 1474 } 1475 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki