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 61C81C4332F for ; Wed, 13 Dec 2023 14:24:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C57506B0321; Wed, 13 Dec 2023 09:24:33 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B93816B031D; Wed, 13 Dec 2023 09:24:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0D098D0015; Wed, 13 Dec 2023 09:24:33 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 829156B0303 for ; Wed, 13 Dec 2023 09:24:33 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4E8EF4094F for ; Wed, 13 Dec 2023 14:24:33 +0000 (UTC) X-FDA: 81562015626.07.8BD2CFF Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by imf22.hostedemail.com (Postfix) with ESMTP id 48835C0007 for ; Wed, 13 Dec 2023 14:24:30 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O2JybKMb; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 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=1702477471; 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=8cL1xkypnXNsT6ilTgRmVfHV2arsQMm3jnS/7WFnLDg=; b=zF5nxi+h4quM3mYIipLXYcPJrW4et4YzoFO/TJAooJQtA+fRTpYFiUNxX4Z/IuJoLhIVq5 6fyN3AZRaV/ySReCOj6//kxEKYlB0CVrWsqW7wYYjNanivS1S6P5HUXQhGy9Ldq7RS/tz7 EooyAbmA7zAXuVgfhGZSFQAK+SeuriQ= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O2JybKMb; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702477471; a=rsa-sha256; cv=none; b=yFNknWeuFvGayUYzQeOWBr0t/uFLuRo56bLwx/eNYsu9m6r4afiwbVmUXV708+YoOn1Lrh gxTzxgY4N6zq6qDUXXJPOgBa0CbPOdFxjJG6DX9VwQNGpJfvS8Der1urRtQAPbFMRxRT3e b1MHfHZrUrVfhqJDOIG8FxDrC7NBkFQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702477470; x=1734013470; h=date:from:to:cc:subject:message-id:mime-version; bh=T8Uz49/o7EJoTJzyDbNb3dYWTBn+GxZvf7BKX1E73lM=; b=O2JybKMb6wPz4l55jUSa3fmPW49EJfCuZkJi/l5qwh1OsVaFpbio8x4O 17ddnWwVy+EaC+tJN/hmS0xkn2ktonB+T1kCTAqJhE3G6+u4kKi9CTozZ pdMVaNSBJDQlGLYUcGKXKQwY/9/Du/stDF/ZUwsGn7ZfxiCB2t/S1JtwX 5MHNOLxwKiWjIYtCUlt+MJlheh/Upbz4UkTxnDdfBmR8treUUibCJ8zOO 436BSl0sklz+lC3ul/6P74o9O08e0Y+pZe99o9Dbm3BpGwdiUnP0XypYB Rt6GTM6l+RRomq50Y/xJ9n36cTDRcCJrNNk1wA5eD4XycfaEvM9tccEKL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="426094064" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="426094064" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 06:24:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="892036528" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="892036528" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 13 Dec 2023 06:24:25 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDQ9v-000Kfq-22; Wed, 13 Dec 2023 14:24:23 +0000 Date: Wed, 13 Dec 2023 22:24:05 +0800 From: kernel test robot To: Sidhartha Kumar Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , "Liam R. Howlett" Subject: [akpm-mm:mm-unstable 208/262] lib/maple_tree.c:5506:30: error: 'struct ma_state' has no member named 'end' Message-ID: <202312132207.KsGGGt1v-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 48835C0007 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: cr748gatqfcp3nxkx5r8s5z963o65enh X-HE-Tag: 1702477470-478221 X-HE-Meta: U2FsdGVkX1+yz7m7DvY+oF1R/T2iKcu8HfBOUNduXcBUhMli79iXHrR2JPoJe1ba4CJSdgoWMVpJWr2HdupB6LoXE4h5doWqpU+XqWwyKcLmeywamf0/SPufAcr8DDx/b/vOiCP/vUuWfqbmkcRARbmj7+XOeOq/+hJSgZElzs8+8ouhMo4DfgEQLbYmVwlpM2ecjPM+wTZdPJdZtzHQxUOeRm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ScMkPuV0ONOulcdfnxzDhZNexH1fE8mOi3asn96ptdobhMUKR5TTjYdkDtIZGqPFdas2aqF8 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: 4d9256c0c56bafd76b8b1517916451e168fae495 commit: 84bda0b24555d3fdf52b56040696ee1ee00700c9 [208/262] maple_tree: do not preallocate nodes for slot stores config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20231213/202312132207.KsGGGt1v-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231213/202312132207.KsGGGt1v-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/202312132207.KsGGGt1v-lkp@intel.com/ Note: the akpm-mm/mm-unstable HEAD 4d9256c0c56bafd76b8b1517916451e168fae495 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): lib/maple_tree.c: In function 'mas_preallocate': >> lib/maple_tree.c:5506:30: error: 'struct ma_state' has no member named 'end' 5506 | if ((node_size == mas->end) && ((!mt_in_rcu(mas->tree)) | ^~ vim +5506 lib/maple_tree.c 5465 5466 /** 5467 * mas_preallocate() - Preallocate enough nodes for a store operation 5468 * @mas: The maple state 5469 * @entry: The entry that will be stored 5470 * @gfp: The GFP_FLAGS to use for allocations. 5471 * 5472 * Return: 0 on success, -ENOMEM if memory could not be allocated. 5473 */ 5474 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) 5475 { 5476 MA_WR_STATE(wr_mas, mas, entry); 5477 unsigned char node_size; 5478 int request = 1; 5479 int ret; 5480 5481 5482 if (unlikely(!mas->index && mas->last == ULONG_MAX)) 5483 goto ask_now; 5484 5485 mas_wr_store_setup(&wr_mas); 5486 wr_mas.content = mas_start(mas); 5487 /* Root expand */ 5488 if (unlikely(mas_is_none(mas) || mas_is_ptr(mas))) 5489 goto ask_now; 5490 5491 if (unlikely(!mas_wr_walk(&wr_mas))) { 5492 /* Spanning store, use worst case for now */ 5493 request = 1 + mas_mt_height(mas) * 3; 5494 goto ask_now; 5495 } 5496 5497 /* At this point, we are at the leaf node that needs to be altered. */ 5498 /* Exact fit, no nodes needed. */ 5499 if (wr_mas.r_min == mas->index && wr_mas.r_max == mas->last) 5500 return 0; 5501 5502 mas_wr_end_piv(&wr_mas); 5503 node_size = mas_wr_new_end(&wr_mas); 5504 5505 /* Slot store, does not require additional nodes */ > 5506 if ((node_size == mas->end) && ((!mt_in_rcu(mas->tree)) 5507 || (wr_mas.offset_end - mas->offset == 1))) 5508 return 0; 5509 5510 if (node_size >= mt_slots[wr_mas.type]) { 5511 /* Split, worst case for now. */ 5512 request = 1 + mas_mt_height(mas) * 2; 5513 goto ask_now; 5514 } 5515 5516 /* New root needs a singe node */ 5517 if (unlikely(mte_is_root(mas->node))) 5518 goto ask_now; 5519 5520 /* Potential spanning rebalance collapsing a node, use worst-case */ 5521 if (node_size - 1 <= mt_min_slots[wr_mas.type]) 5522 request = mas_mt_height(mas) * 2 - 1; 5523 5524 /* node store, slot store needs one node */ 5525 ask_now: 5526 mas_node_count_gfp(mas, request, gfp); 5527 mas->mas_flags |= MA_STATE_PREALLOC; 5528 if (likely(!mas_is_err(mas))) 5529 return 0; 5530 5531 mas_set_alloc_req(mas, 0); 5532 ret = xa_err(mas->node); 5533 mas_reset(mas); 5534 mas_destroy(mas); 5535 mas_reset(mas); 5536 return ret; 5537 } 5538 EXPORT_SYMBOL_GPL(mas_preallocate); 5539 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki