[rcu:willy-maple 126/202] include/linux/maple_tree.h:91:28: error: 'MAPLE_NODE_SLOTS' undeclared here (not in a function); did you mean

From: kernel test robot
Date: Tue Feb 02 2021 - 18:36:37 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git willy-maple
head: 7e346d2845b4bd77663394f39fa70456e0084c86
commit: d25a147c68d7378077669ed06b74238a6213dae1 [126/202] mm: Start tracking VMAs with maple tree
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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/paulmck/linux-rcu.git/commit/?id=d25a147c68d7378077669ed06b74238a6213dae1
git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu willy-maple
git checkout d25a147c68d7378077669ed06b74238a6213dae1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from include/linux/mm_types.h:11,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/sh/kernel/asm-offsets.c:14:
include/linux/maple_tree.h:79:22: error: 'MAPLE_RANGE64_SLOTS' undeclared here (not in a function)
79 | unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~
include/linux/maple_tree.h:85:22: error: 'MAPLE_ARANGE64_SLOTS' undeclared here (not in a function)
85 | unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/maple_tree.h:91:28: error: 'MAPLE_NODE_SLOTS' undeclared here (not in a function); did you mean 'MAPLE_ALLOC_SLOTS'?
91 | #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1)
| ^~~~~~~~~~~~~~~~
include/linux/maple_tree.h:96:27: note: in expansion of macro 'MAPLE_ALLOC_SLOTS'
96 | struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/mm_types.h:11,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/sh/kernel/asm-offsets.c:14:
include/linux/maple_tree.h:79:22: error: 'MAPLE_RANGE64_SLOTS' undeclared here (not in a function)
79 | unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~
include/linux/maple_tree.h:85:22: error: 'MAPLE_ARANGE64_SLOTS' undeclared here (not in a function)
85 | unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/maple_tree.h:91:28: error: 'MAPLE_NODE_SLOTS' undeclared here (not in a function); did you mean 'MAPLE_ALLOC_SLOTS'?
91 | #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1)
| ^~~~~~~~~~~~~~~~
include/linux/maple_tree.h:96:27: note: in expansion of macro 'MAPLE_ALLOC_SLOTS'
96 | struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
| ^~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/sh/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
In file included from include/linux/mm_types.h:11,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/sh/kernel/asm-offsets.c:14:
include/linux/maple_tree.h:79:22: error: 'MAPLE_RANGE64_SLOTS' undeclared here (not in a function)
79 | unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~
include/linux/maple_tree.h:85:22: error: 'MAPLE_ARANGE64_SLOTS' undeclared here (not in a function)
85 | unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/maple_tree.h:91:28: error: 'MAPLE_NODE_SLOTS' undeclared here (not in a function); did you mean
91 | #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1)
| ^~~~~~~~~~~~~~~~
include/linux/maple_tree.h:96:27: note: in expansion of macro 'MAPLE_ALLOC_SLOTS'
96 | struct maple_alloc
| ^~~~~~~~~~~~~~~~~
Makefile System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net samples scripts security sound source usr virt vmlinux vmlinux.o vmlinux.symvers [scripts/Makefile.build:117: arch/sh/kernel/asm-offsets.s] Error 1
Target '__build' not remade because of errors.
Makefile System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net samples scripts security sound source usr virt vmlinux vmlinux.o vmlinux.symvers [Makefile:1206: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile System.map arch block certs crypto drivers fs include init ipc kernel lib mm modules.builtin modules.builtin.modinfo modules.order net samples scripts security sound source usr virt vmlinux vmlinux.o vmlinux.symvers [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/MAPLE_NODE_SLOTS +91 include/linux/maple_tree.h

824aa5e4af0be6 Liam R. Howlett 2020-07-24 40
824aa5e4af0be6 Liam R. Howlett 2020-07-24 41
824aa5e4af0be6 Liam R. Howlett 2020-07-24 42 /**
824aa5e4af0be6 Liam R. Howlett 2020-07-24 43 * maple_tree node explained
824aa5e4af0be6 Liam R. Howlett 2020-07-24 44 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 45 * Each node type has a number of slots for entries and a number of slots for
824aa5e4af0be6 Liam R. Howlett 2020-07-24 46 * pivots. In the case of dense nodes, the pivots are implied by the position
824aa5e4af0be6 Liam R. Howlett 2020-07-24 47 * and are simply the slot index + the minimum of the node.
824aa5e4af0be6 Liam R. Howlett 2020-07-24 48 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 49 * In regular B-Tree terms, pivots are called keys. The term pivot is used to
824aa5e4af0be6 Liam R. Howlett 2020-07-24 50 * indicate that the tree is specifying ranges, Pivots may appear in the
824aa5e4af0be6 Liam R. Howlett 2020-07-24 51 * subtree with an entry attached to the value where as keys are unique to a
824aa5e4af0be6 Liam R. Howlett 2020-07-24 52 * specific position of a B-tree. Pivot values are inclusive of the slot with
824aa5e4af0be6 Liam R. Howlett 2020-07-24 53 * the same index.
824aa5e4af0be6 Liam R. Howlett 2020-07-24 54 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 55 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 56 * The following illustrates the layout of a range64 nodes slots and pivots.
824aa5e4af0be6 Liam R. Howlett 2020-07-24 57 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 58 * _________________________________
824aa5e4af0be6 Liam R. Howlett 2020-07-24 59 * Slots -> | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
824aa5e4af0be6 Liam R. Howlett 2020-07-24 60 * ┬ ┬ ┬ ┬ ┬ ┬ ┬ ┬ ┬
824aa5e4af0be6 Liam R. Howlett 2020-07-24 61 * │ │ │ │ │ │ │ │ └─ Implied maximum
824aa5e4af0be6 Liam R. Howlett 2020-07-24 62 * │ │ │ │ │ │ │ └─ Pivot 6
824aa5e4af0be6 Liam R. Howlett 2020-07-24 63 * │ │ │ │ │ │ └─ Pivot 5
824aa5e4af0be6 Liam R. Howlett 2020-07-24 64 * │ │ │ │ │ └─ Pivot 4
824aa5e4af0be6 Liam R. Howlett 2020-07-24 65 * │ │ │ │ └─ Pivot 3
824aa5e4af0be6 Liam R. Howlett 2020-07-24 66 * │ │ │ └─ Pivot 2
824aa5e4af0be6 Liam R. Howlett 2020-07-24 67 * │ │ └─ Pivot 1
824aa5e4af0be6 Liam R. Howlett 2020-07-24 68 * │ └─ Pivot 0
824aa5e4af0be6 Liam R. Howlett 2020-07-24 69 * └─ Implied minimum
824aa5e4af0be6 Liam R. Howlett 2020-07-24 70 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 71 * Slot contents:
824aa5e4af0be6 Liam R. Howlett 2020-07-24 72 * Internal (non-leaf) nodes contain pointers to other nodes.
824aa5e4af0be6 Liam R. Howlett 2020-07-24 73 * Leaf nodes contain entries.
824aa5e4af0be6 Liam R. Howlett 2020-07-24 74 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 75 *
824aa5e4af0be6 Liam R. Howlett 2020-07-24 76 */
824aa5e4af0be6 Liam R. Howlett 2020-07-24 77 struct maple_range_64 {
824aa5e4af0be6 Liam R. Howlett 2020-07-24 78 struct maple_pnode *parent;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 @79 unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 80 void __rcu *slot[MAPLE_RANGE64_SLOTS];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 81 };
824aa5e4af0be6 Liam R. Howlett 2020-07-24 82
824aa5e4af0be6 Liam R. Howlett 2020-07-24 83 struct maple_arange_64 {
824aa5e4af0be6 Liam R. Howlett 2020-07-24 84 struct maple_pnode *parent;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 85 unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 86 void __rcu *slot[MAPLE_ARANGE64_SLOTS];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 87 unsigned long gap[MAPLE_ARANGE64_SLOTS];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 88 unsigned char meta;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 89 };
824aa5e4af0be6 Liam R. Howlett 2020-07-24 90
824aa5e4af0be6 Liam R. Howlett 2020-07-24 @91 #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1)
824aa5e4af0be6 Liam R. Howlett 2020-07-24 92 struct maple_alloc {
824aa5e4af0be6 Liam R. Howlett 2020-07-24 93 unsigned long total;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 94 unsigned char node_count;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 95 unsigned int request_count;
824aa5e4af0be6 Liam R. Howlett 2020-07-24 96 struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
824aa5e4af0be6 Liam R. Howlett 2020-07-24 97 };
824aa5e4af0be6 Liam R. Howlett 2020-07-24 98

:::::: The code at line 91 was first introduced by commit
:::::: 824aa5e4af0be646da193e90e3383651b93f1c8d Maple Tree: Add new data structure

:::::: TO: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>
:::::: CC: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip