Re: [PATCH 1/7] bitops: Introduce the for_each_set_port_word macro

From: kbuild test robot
Date: Mon May 07 2018 - 19:36:56 EST


Hi William,

I love your patch! Yet something to improve:

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.17-rc4 next-20180507]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/William-Breathitt-Gray/Introduce-the-for_each_set_port_word-macro/20180508-034417
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc

All errors (new ones prefixed by >>):

In file included from arch/openrisc/include/asm/bitops.h:37:0,
from include/linux/bitops.h:38,
from include/linux/radix-tree.h:24,
from kernel/memremap.c:13:
>> include/asm-generic/bitops/find.h:98:1: error: unknown type name 'size_t'
size_t find_next_port_word(size_t *const word_index,
^~~~~~
include/asm-generic/bitops/find.h:98:28: error: unknown type name 'size_t'
size_t find_next_port_word(size_t *const word_index,
^~~~~~
include/asm-generic/bitops/find.h:100:46: error: unknown type name 'size_t'
const unsigned long *const bits, const size_t size,
^~~~~~
include/asm-generic/bitops/find.h:101:13: error: unknown type name 'size_t'
const size_t offset, const unsigned int port_size);
^~~~~~

vim +/size_t +98 include/asm-generic/bitops/find.h

82
83 /**
84 * find_next_port_word - find next port word with set bits in a memory region
85 * @word_index: location to store bitmap word index of found port word
86 * @word_offset: bits offset of the found port word in respective bitmap word
87 * @bits: address to base the search on
88 * @size: bitmap size in number of ports
89 * @offset: port word index to start searching at
90 * @port_size: port word size in bits
91 *
92 * Returns the port index for the next port word with set bits; the respective
93 * bitmap word index is stored at the location pointed by @word_index, and the
94 * bits offset of the found port word within the respective bitmap word is
95 * stored at the location pointed by @word_offset. If no bits are set, returns
96 * @size.
97 */
> 98 size_t find_next_port_word(size_t *const word_index,
99 unsigned int *const word_offset,
100 const unsigned long *const bits, const size_t size,
101 const size_t offset, const unsigned int port_size);
102

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip