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 EABF7C77B73 for ; Sat, 6 May 2023 12:55:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EAC6C6B0072; Sat, 6 May 2023 08:55:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E5CE06B0078; Sat, 6 May 2023 08:55:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D4BDA6B007B; Sat, 6 May 2023 08:55:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by kanga.kvack.org (Postfix) with ESMTP id 99FE06B0072 for ; Sat, 6 May 2023 08:55:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683377718; x=1714913718; h=date:from:to:cc:subject:message-id:mime-version; bh=9WgP29zPFLE/3/XAsk6YeNHAd2yiauStsZ3+dhFu9pc=; b=RYXwdI/l2BfGSa1kT973NbrX7cbnF2TScuJ/wzQRCDYdlBm8nh+fXB7q qFR779Ko6Txu2mRfuzRrEAg8VUjPyRkUAM04olQcRyd+gSRgh1MxN64a2 srqIBNDoCYKivAM0uJtoWrT6tRNGwPIoW3m4ifTGxbBpxle5h69KehjhJ dG/okYjLSnPKER2oIbEAvM3idX4hVQi+rjc7rsmfyX2kNasZfQrr/LeJ3 +/8PINWZnCnixuhE6rj3OwACUtMagRwb5ebfqjM9rpQMJLN/04t8/6+cC XXA6Q1AVCwDAKmQVLlqyv7Ei+vcnONir24DaR1DKtTEkKbSIOTxwKQo6n w==; X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="377462079" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="377462079" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2023 05:55:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="872246204" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="872246204" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 06 May 2023 05:55:15 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pvHRT-0000JH-1N; Sat, 06 May 2023 12:55:15 +0000 Date: Sat, 6 May 2023 20:54:21 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 72/80] lib/maple_tree.c:4606:7: warning: no previous prototype for 'mas_prev_slot' Message-ID: <202305062052.NZOXSlsE-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: f96b65aa15baec616fffdb8f1d4fa3222aa56467 commit: 6a63ac4851b007cce284142f5da19ea4b31a2eee [72/80] maple_tree: introduce mas_prev_slot() interface config: arc-randconfig-r043-20230502 (https://download.01.org/0day-ci/archive/20230506/202305062052.NZOXSlsE-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=6a63ac4851b007cce284142f5da19ea4b31a2eee git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 6a63ac4851b007cce284142f5da19ea4b31a2eee # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305062052.NZOXSlsE-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/maple_tree.c:4606:7: warning: no previous prototype for 'mas_prev_slot' [-Wmissing-prototypes] 4606 | void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) | ^~~~~~~~~~~~~ lib/maple_tree.c:4758:7: warning: no previous prototype for 'mas_next_slot' [-Wmissing-prototypes] 4758 | void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty) | ^~~~~~~~~~~~~ vim +/mas_prev_slot +4606 lib/maple_tree.c 4597 4598 /* 4599 * mas_prev_slot() - Get the entry in the previous slot 4600 * 4601 * @mas: The maple state 4602 * @max: The minimum starting range 4603 * 4604 * Return: The entry in the previous slot which is possibly NULL 4605 */ > 4606 void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) 4607 { 4608 void *entry; 4609 void __rcu **slots; 4610 unsigned long pivot; 4611 enum maple_type type; 4612 unsigned long *pivots; 4613 struct maple_node *node; 4614 unsigned long save_point = mas->index; 4615 4616 retry: 4617 node = mas_mn(mas); 4618 type = mte_node_type(mas->node); 4619 pivots = ma_pivots(node, type); 4620 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4621 goto retry; 4622 4623 again: 4624 if (mas->min <= min) { 4625 pivot = mas_safe_min(mas, pivots, mas->offset); 4626 4627 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4628 goto retry; 4629 4630 if (pivot <= min) 4631 return NULL; 4632 } 4633 4634 if (likely(mas->offset)) { 4635 mas->offset--; 4636 mas->last = mas->index - 1; 4637 mas->index = mas_safe_min(mas, pivots, mas->offset); 4638 } else { 4639 if (mas_prev_node(mas, min)) { 4640 mas_rewalk(mas, save_point); 4641 goto retry; 4642 } 4643 4644 if (mas_is_none(mas)) 4645 return NULL; 4646 4647 mas->last = mas->max; 4648 node = mas_mn(mas); 4649 type = mte_node_type(mas->node); 4650 pivots = ma_pivots(node, type); 4651 mas->index = pivots[mas->offset - 1] + 1; 4652 } 4653 4654 slots = ma_slots(node, type); 4655 entry = mas_slot(mas, slots, mas->offset); 4656 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4657 goto retry; 4658 4659 if (likely(entry)) 4660 return entry; 4661 4662 if (!empty) 4663 goto again; 4664 4665 return entry; 4666 } 4667 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests