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 02935E9371E for ; Mon, 9 Oct 2023 22:28:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 730C98D0099; Mon, 9 Oct 2023 18:28:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6DFD68D0089; Mon, 9 Oct 2023 18:28:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F5C28D0099; Mon, 9 Oct 2023 18:28:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 510888D0089 for ; Mon, 9 Oct 2023 18:28:40 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1C74380447 for ; Mon, 9 Oct 2023 22:28:40 +0000 (UTC) X-FDA: 81327363600.17.666366A Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by imf08.hostedemail.com (Postfix) with ESMTP id C657C16000A for ; Mon, 9 Oct 2023 22:28:36 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NTs3vvhC; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1696890517; 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=tMzHvfvVwqObMgltFR+0og/rd0cL832w43YwSVvqcLM=; b=qdd9vxoNOHEHbc6d2xfuoeOdDGlp12LDNs4Huni4f9zlbaTKVZKWtJAonrjiv3zobLFYWX Mo4EkWOcGd95pB4AaIAf/1kab7o0G1++oAKo7c3//sx0ebvQaXNJseUDNYBNoR4Po0Ap/M nmgYJEo+WrM9WVAicOnPGxlGSRYfgEY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NTs3vvhC; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696890517; a=rsa-sha256; cv=none; b=S5h+qrzDcgr6WQDjexi4hLDvluWZCGveiRB4/9zn1QJQDeJ0yEJ4g5unNEljsBPzevqiOj FcCvr7hT4AiegwQ7DLVTbBjF/eZIBj7ouw7Ho8Pq+CG5BmzOWjzvTnfUudBiKNSG2VZxbZ HAmE+SezaSH9f5vDmwRibjaTrjgiDCc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696890516; x=1728426516; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tcdMrCDUe3iaka9lM/WN33sOnz9XetzlVI9bNrAOSSU=; b=NTs3vvhCKJPmNDhtNhcu3EmCSzxerWa3mTcSh3wCqgt6TKwU34BC7KUB rovUn6q85IIIb6m9rXlBPD29FaKoUGscU/xIca4riETurxuoIVdg0dMXj 0thx99o0hZt0mZOq80+KMJRH58ns5zAeAoocGwOLuLPckFnHn3tK3zpqD HEqMg7pnWUB0DxNqO6efwacHjNCzpOjDfI/I25p+581/rsfWtx8BEa0KA kvkrdcE3B2tN5uyoXVVAsKsOsurS8qs2DaNkwByBd99LF4VJn3RCGSeVx IvGe8j3ngxfdBAJ9YKp0t/YSMZo7edOyxwcW8dw9suTJlmv2BsDZ+jUBu A==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="470520020" X-IronPort-AV: E=Sophos;i="6.03,211,1694761200"; d="scan'208";a="470520020" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 15:26:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="926897957" X-IronPort-AV: E=Sophos;i="6.03,211,1694761200"; d="scan'208";a="926897957" Received: from lkp-server02.sh.intel.com (HELO 4ed589823ba4) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 09 Oct 2023 15:26:19 -0700 Received: from kbuild by 4ed589823ba4 with local (Exim 4.96) (envelope-from ) id 1qpyhc-0000lg-3B; Mon, 09 Oct 2023 22:26:16 +0000 Date: Tue, 10 Oct 2023 06:25:40 +0800 From: kernel test robot To: Sidhartha Kumar , linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, akpm@linux-foundation.org, willy@infradead.org, liam.howlett@oracle.com, zhangpeng.00@bytedance.com, Sidhartha Kumar Subject: Re: [PATCH 1/3] maple_tree: introduce mas_prealloc_calc() Message-ID: <202310100603.qsn3ruBx-lkp@intel.com> References: <20231009201639.920512-2-sidhartha.kumar@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009201639.920512-2-sidhartha.kumar@oracle.com> X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: C657C16000A X-Stat-Signature: xcoust83px7pcb5nozsm7zyew7uekh4r X-Rspam-User: X-HE-Tag: 1696890516-496314 X-HE-Meta: U2FsdGVkX1+dq32LOStuB77haW3Gi0gJAPaxeeA9TAgoqY6DC2ljuU4ogF7yfvjfMEPYXSVoNiJSO7BvQOZHVO6L8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TvdhT8zArmeKH+q99vPBMZIrx3J1c8RXRV+EJWxmwCM0TuTeXzJCghpDnohG24cc+LSs0htTTe4M3XhLpxfMKou+aXdLOTQWwJLkjqtpiup5SxJUc7ASfPzXdzRtg3mwjFurVEYWx5SNk8lZ2uTGkTBsmlj/ySK/air9dj3wJ2HPCU1Ak4/Q+GJPYmJXJZTVvZpjV2JZwIPWzSXi+G4FVmlGd02V11No4Ova9ZzmmJg1vq6wPqf92r1fv3lYcxhuA3SP1W64GA== 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 Sidhartha, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on linus/master v6.6-rc5 next-20231009] [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/Sidhartha-Kumar/maple_tree-introduce-mas_prealloc_calc/20231010-041859 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231009201639.920512-2-sidhartha.kumar%40oracle.com patch subject: [PATCH 1/3] maple_tree: introduce mas_prealloc_calc() config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231010/202310100603.qsn3ruBx-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/202310100603.qsn3ruBx-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/202310100603.qsn3ruBx-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/maple_tree.c:5428:5: warning: no previous prototype for 'mas_prealloc_calc' [-Wmissing-prototypes] 5428 | int mas_prealloc_calc(struct ma_wr_state *wr_mas) | ^~~~~~~~~~~~~~~~~ vim +/mas_prealloc_calc +5428 lib/maple_tree.c 5420 5421 /** 5422 * mas_prealloc_calc() - Calculate number of nodes needed for a 5423 * store operation. 5424 * @wr_mas: The maple write state 5425 * 5426 * Return: Number of nodes required for preallocation. 5427 */ > 5428 int mas_prealloc_calc(struct ma_wr_state *wr_mas) 5429 { 5430 struct ma_state *mas = wr_mas->mas; 5431 unsigned char node_size; 5432 5433 if (unlikely(!mas->index && mas->last == ULONG_MAX)) 5434 return 1; 5435 5436 /* Root expand */ 5437 if (unlikely(mas_is_none(mas) || mas_is_ptr(mas))) 5438 return 1; 5439 5440 if (unlikely(!mas_wr_walk(wr_mas))) { 5441 /* Spanning store, use worst case for now */ 5442 return 1 + mas_mt_height(mas) * 3; 5443 } 5444 5445 /* At this point, we are at the leaf node that needs to be altered. */ 5446 /* Exact fit, no nodes needed. */ 5447 if (wr_mas->r_min == mas->index && wr_mas->r_max == mas->last) 5448 return 0; 5449 5450 mas_wr_end_piv(wr_mas); 5451 node_size = mas_wr_new_end(wr_mas); 5452 if (node_size >= mt_slots[wr_mas->type]) { 5453 /* Split, worst case for now. */ 5454 return 1 + mas_mt_height(mas) * 2; 5455 } 5456 5457 /* New root needs a singe node */ 5458 if (unlikely(mte_is_root(mas->node))) 5459 return 1; 5460 5461 /* Potential spanning rebalance collapsing a node, use worst-case */ 5462 if (node_size - 1 <= mt_min_slots[wr_mas->type]) 5463 return mas_mt_height(mas) * 2 - 1; 5464 5465 /* node store, slot store needs one node */ 5466 return 1; 5467 } 5468 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki