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 2EC7ED2CDF6 for ; Tue, 22 Oct 2024 23:32:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A5F8B6B00B3; Tue, 22 Oct 2024 19:32:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A10786B00B5; Tue, 22 Oct 2024 19:32:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8AFE66B00B7; Tue, 22 Oct 2024 19:32:54 -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 6D3926B00B3 for ; Tue, 22 Oct 2024 19:32:54 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 49DD1A02A7 for ; Tue, 22 Oct 2024 23:32:23 +0000 (UTC) X-FDA: 82702840164.22.82521AC Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by imf18.hostedemail.com (Postfix) with ESMTP id B47991C0022 for ; Tue, 22 Oct 2024 23:32:44 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=b9Tvo7B2; spf=pass (imf18.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.44 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729639820; h=from:from:sender:reply-to: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=KpX/ocuTdEo5Eaq0leSKyTZEd3VWOebJ/EGKirWte7U=; b=ce8k1gyI2vmcuW5MnToKOpPsS69XgsYB/tJJu2WojHdH5AyK47t1LTxgbumZe7m9yGVovt Cop0VQD11pHV77UZchFdW+2ecCC2fbS7c2cJnKN7IUqB2EJ5pdocF/v10rVi4TKaKTjA43 cNNVPTJg0HYk4i5BtC10Bx0E1QL2QKs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729639820; a=rsa-sha256; cv=none; b=mmo1amvsTSvZ12hBwnDUmNqOUHWXnlIdQ+W6OdV6ZYv+IRiC5E55CSQXvjbb6HVAdLG+MJ aBsg80LFxgfTZD1O/N9myUPxJvIYLr60wphNK1eTVf0fiOxpwF9sQho5KUfWOgS8vjVJnH ED7OPsjugIE+Yvsr+tCQHkRJ0j+CdEA= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=b9Tvo7B2; spf=pass (imf18.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.44 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5c97c7852e8so7247934a12.1 for ; Tue, 22 Oct 2024 16:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729639970; x=1730244770; darn=kvack.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=KpX/ocuTdEo5Eaq0leSKyTZEd3VWOebJ/EGKirWte7U=; b=b9Tvo7B2l+iVt0/gftvvDpF1Mi8zjFQ1ueDRDRUexDrtypBwZjD/ywKRiDbPzKRSdf t3QgOpuxUoabbFpAOW7TLlUrBsxjmJ1UBvNLSAxMNyeK8mV+T/kqPyMAprhmSTq5Pj9I sjpu//r79IFo556EBB7CwrqDJT9OECHNKMO43lPTRb9zJRKzppBRdK7fojxHj6VxOUml tnl+NlIxwTl8wJd3+OWEnbih0WHl7+upCMUUs1j9sTqgudtG+9uLN2sBCZy0AshcUhac va8Od1IjZ+rTeJaTY76ICFxaDBIQ92HdpovrFhfnz2IdDUzo4LEFZKWEHs6S/OadH5lQ PRtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729639970; x=1730244770; h=user-agent:in-reply-to:content-disposition:mime-version:references :reply-to:message-id:subject:cc:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KpX/ocuTdEo5Eaq0leSKyTZEd3VWOebJ/EGKirWte7U=; b=gXl+54iBBEW4972PGCQ/iYO87kNYRmuuorZsQLEa7zi8XGM09qrvBURsyVQuBv09VR UZ65IWvG3pYX+PFeH7QC5G7a2TXIAw31iiTIiCelx0voz+KPoGVWwluwmJGJXkIJiSik nKi5zxlDlres+l2g7JOlojI17YACQyi2ndhexlL0ZLkFSOrP9aCEGyQlPB6nfo1+JoAa YEfPZbkUQO4/GPww6zEMQ3rU2asFmN4QMx55NEIGGHNcxxbPflF2ZEv3kuJ5wsZP59ci U9PlwO4Soe2FtEJ1FpDxEO6jt5CGLZkmU0QpqB6dgP5VRzZM2GNFWyo+ESV807tBDdwt ucwg== X-Forwarded-Encrypted: i=1; AJvYcCWvIAs/53wys0cC1Zfuui7gE+ROd2DTEXMRuI8ypMhuKiIBe1g8UzFEwqp0JEAKOL+XHyEdfLKakw==@kvack.org X-Gm-Message-State: AOJu0YwXjt5FK8vaY5wLnOCA9fc00lcTE/CgmdJu0qsEW0W6u0RVLOiC qwa3AJUz5zHpR6YbaND3RL0811zp8cPOuFFYLm6ERwHRt4DHGKDW X-Google-Smtp-Source: AGHT+IFKc2vNZNcDHh9gckvXnoWBEe+VTCdjIpXRD2xVVWKZvX9jSS24NKWAmq0zXlsVRAqI+OWdBg== X-Received: by 2002:a05:6402:d08:b0:5c9:85e8:e866 with SMTP id 4fb4d7f45d1cf-5cb8b264b60mr636267a12.22.1729639970122; Tue, 22 Oct 2024 16:32:50 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cb6696b63csm3632685a12.19.2024.10.22.16.32.48 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Oct 2024 16:32:49 -0700 (PDT) Date: Tue, 22 Oct 2024 23:32:47 +0000 From: Wei Yang To: kernel test robot Cc: Wei Yang , akpm@linux-foundation.org, Liam.Howlett@oracle.com, oe-kbuild-all@lists.linux.dev, maple-tree@lists.infradead.org, linux-mm@kvack.org, Sidhartha Kumar , Lorenzo Stoakes Subject: Re: [PATCH v4 5/5] maple_tree: add a test checking storing null Message-ID: <20241022233247.htf7diduw2ojce2p@master> Reply-To: Wei Yang References: <20241019023716.4516-6-richard.weiyang@gmail.com> <202410230105.UApdwd9S-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202410230105.UApdwd9S-lkp@intel.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: B47991C0022 X-Stat-Signature: khm8iztnjf9yyiz9cgak6ty919rpbuk5 X-HE-Tag: 1729639964-121032 X-HE-Meta: U2FsdGVkX19khl5T1HQeBrRvT+n3Umfoj8pfK+I6LOR6IP9Pvw8kH285hpyJdprbWM3F6e25ZuyXgZl3PH8gawdezdBQsvGFsJfxSnsDfyAI4MWF50Zv8Vdj1+Flb05/a9EBm8FDnehVd+khrEuIdThg6wuxiIlzuXdXdV/XoTzVFIwSymXSvgqX959EQJf9KQyHVWicxjmwBjsXhQa6HQhXXtQKgMWLpC1WRnLtLykrFAiI82QY1L6kpco0PhCt+le1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aEK3glfxPCgSpmRmt6n4OcxC1bG4KqwyUFJvqkDT6rlRALR3p7KgcVp/bmWALiO/wJlgoPxkCgD3MZC9H7b1pcRpOp7j8BnolTyRSYqh/QNTgy/wkcw8p6TODAPmDRK2kbUQA3qeDmUBxsrribxZl4utlWf1l/90IRgvEzKnCCEY8NZvfkcMCHky+tQDxwzJHBpLPjx3OroS0Vp5hglbkDTScLVduYF66bmT80MrNHbyD2zdNnE124dSEGZKichv7+zlDYvwqv7YDdd9bZyb40+6q0wO6thYYRYfp2vMgR5/yK0ftbg1w7itMXIHfhMpdTpSHkfC58rozoreTujGyuJtUSjiWQEtxvV4ZedvIqUAyVMFfaYV/Z934rL55RpstT04GvfHvDvrSjAxe3kU0cXJxnZWWSY2i/KA0vO+8DyspumuL/1TBEfkcYSLo/qM62L9V2fcH6cJqnphFAmgUpEc4rox2uju+fl1mVg== 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: On Wed, Oct 23, 2024 at 01:37:50AM +0800, kernel test robot wrote: >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)); Thanks. Will fix it to xa_is_node(mas_root(&mas)) in next version. > 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 -- Wei Yang Help you, Help me