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 8CFE9CD80A7 for ; Tue, 10 Oct 2023 11:07:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EC2828D006D; Tue, 10 Oct 2023 07:07:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E72D08D0002; Tue, 10 Oct 2023 07:07:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D3BF28D006D; Tue, 10 Oct 2023 07:07:13 -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 C490F8D0002 for ; Tue, 10 Oct 2023 07:07:13 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 900B3120331 for ; Tue, 10 Oct 2023 11:07:13 +0000 (UTC) X-FDA: 81329275146.17.ACCCED7 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by imf30.hostedemail.com (Postfix) with ESMTP id E91448000B for ; Tue, 10 Oct 2023 11:07:09 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=LV6tzgVK; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696936030; a=rsa-sha256; cv=none; b=vKh96Ndp2KtlFyWvDFnZilr+Li2guXu7LAodfsatKRdSkElbZWBx9FJfd6mOmWAohHoLiH Tof0m4IQ+SJmzq66agU/2oEsCk56jM1xO7OhyuieJfg6IoqJPUn2YnY6BF8pQsaWobvpdi HwJ/r1i7ctFKCotd/9ZTrr05oPLMah8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=LV6tzgVK; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 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=1696936030; 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=kXRapASznYU9SCJ+LPAHci4m83n9PIfdz7NOExfaIqg=; b=wCM5845C4zkKjK7ms4ApYMgQA1NC2wiD5kHirAQvf2MDATmFqLwkmwfVNGK6YPf16tOpkV yIjFK3TSllvU+EmNQ1T8qNGpRT8kTj3DMd05V37LzrcCCrzJR0sR0GgZA920oEbNuKO158 IPqUkaSnUrVgm1hs9v15ptlJbn1bBR0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696936030; x=1728472030; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9FJub4UcvGgu+oorE62JwYE9DpYTagtbsI1/NwkqTak=; b=LV6tzgVKc/d5Q7yuY36fHU8GI1L+1JCDyNe869wpikUD7IpEUsh9UD0y /s74DPokm5kvNdvcuUqzVREj9Op7gFQTLk76wvMTphTFyUmzJUtHmSvvV bOuZsJf9D2FGmQ/sELRrAOc4XEdFF6XvBzqNQqC+y3yfMNS7bWkWJtbg+ G9aiESMTQbKok4rY7vnVC9F+WJvKhe4Z1WIssQ4MsFlxrSH7r/Cyx5hjo icWC1uBt+M58QVlzligiYMsjoUnUfcHdHIP0UOtupE4fEVJpR3A33mdY2 u/SqBXELSxg1yAIu3Duj6SrnBAgtghU4fjOA6uVH0mT4fvSFK3ODEr7K3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="387203895" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="387203895" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 04:06:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="757074653" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="757074653" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 10 Oct 2023 04:06:39 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qqAZQ-0000IG-1y; Tue, 10 Oct 2023 11:06:36 +0000 Date: Tue, 10 Oct 2023 19:06:13 +0800 From: kernel test robot To: Sidhartha Kumar , linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org Cc: llvm@lists.linux.dev, 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: <202310101854.kMSUyzOr-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: rspam08 X-Rspamd-Queue-Id: E91448000B X-Stat-Signature: 8mahhyfjrnryo9hn6igbisi99gy6bsmo X-Rspam-User: X-HE-Tag: 1696936029-351281 X-HE-Meta: U2FsdGVkX1/2AKDY3PM+y9mMxVp1JtcPifHOE8mx1Qj/I38SdOtvayuPEC8y2kPPtR2ww5uZ+U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t3jjlLS6RocRtpXDB+lyBvJCt+gRQfw3ld/8djucNCYjIWZexUb3hkRWNaBHz9ptDtQq0MgvrRFKUouc3y2w0BR+KK1+CI+zML0UwK59kO1JB2EcVj3k+of6kZDvYh+s+lKFPZomjY6uPlQrHfl9OmX4oTWtrl+9cfBF04oE537WGfq/r0wLAlySZLbeC+Dp/+ZSnClW3J7TZzkBJBrEWocTw3H9CohjtpwoBA3tZfiZfXvYc4ypd7N8yPLq1iLJja/Scw3hO1Hhu0PIbbhTuHzyrg== 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-20231010] [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: um-allnoconfig (https://download.01.org/0day-ci/archive/20231010/202310101854.kMSUyzOr-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/202310101854.kMSUyzOr-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/202310101854.kMSUyzOr-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/maple_tree.c:5428:5: warning: no previous prototype for function 'mas_prealloc_calc' [-Wmissing-prototypes] 5428 | int mas_prealloc_calc(struct ma_wr_state *wr_mas) | ^ lib/maple_tree.c:5428:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 5428 | int mas_prealloc_calc(struct ma_wr_state *wr_mas) | ^ | static lib/maple_tree.c:348:21: warning: unused function 'mte_set_full' [-Wunused-function] 348 | static inline void *mte_set_full(const struct maple_enode *node) | ^ lib/maple_tree.c:353:21: warning: unused function 'mte_clear_full' [-Wunused-function] 353 | static inline void *mte_clear_full(const struct maple_enode *node) | ^ lib/maple_tree.c:358:20: warning: unused function 'mte_has_null' [-Wunused-function] 358 | static inline bool mte_has_null(const struct maple_enode *node) | ^ lib/maple_tree.c:689:29: warning: unused function 'mas_pivot' [-Wunused-function] 689 | static inline unsigned long mas_pivot(struct ma_state *mas, unsigned char piv) | ^ lib/maple_tree.c:4201:20: warning: stack frame size (1032) exceeds limit (1024) in 'mas_wr_modify' [-Wframe-larger-than] 4201 | static inline void mas_wr_modify(struct ma_wr_state *wr_mas) | ^ 6 warnings generated. 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