Hi Andrew, [auto build test ERROR on gpio/for-next] [also build test ERROR on v4.10-rc5 next-20170123] [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/Andrew-Jeffery/gpio-aspeed-Implement-banks-Y-Z-AA-AB-and-AC/20170123-134930 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sparc64 All errors (new ones prefixed by >>): In file included from arch/sparc/include/asm/bitops_64.h:53:0, from arch/sparc/include/asm/bitops.h:4, from include/linux/bitops.h:36, from include/linux/kernel.h:10, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/gpio/gpio-aspeed.c:12: drivers/gpio/gpio-aspeed.c: In function 'set_irq_valid_mask': >> include/asm-generic/bitops/find.h:58:60: error: passing argument 1 of 'find_next_zero_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) ^ include/linux/bitops.h:50:15: note: in expansion of macro 'find_first_zero_bit' for ((bit) = find_first_zero_bit((addr), (size)); \ ^~~~~~~~~~~~~~~~~~~ drivers/gpio/gpio-aspeed.c:457:3: note: in expansion of macro 'for_each_clear_bit' for_each_clear_bit(offset, &props->input, 32) { ^~~~~~~~~~~~~~~~~~ include/asm-generic/bitops/find.h:28:22: note: expected 'const long unsigned int *' but argument is of type 'const u32 * {aka const unsigned int *}' extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned ^~~~~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:10:0, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/gpio/gpio-aspeed.c:12: include/linux/bitops.h:52:34: error: passing argument 1 of 'find_next_zero_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] (bit) = find_next_zero_bit((addr), (size), (bit) + 1)) ^ drivers/gpio/gpio-aspeed.c:457:3: note: in expansion of macro 'for_each_clear_bit' for_each_clear_bit(offset, &props->input, 32) { ^~~~~~~~~~~~~~~~~~ In file included from arch/sparc/include/asm/bitops_64.h:53:0, from arch/sparc/include/asm/bitops.h:4, from include/linux/bitops.h:36, from include/linux/kernel.h:10, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/gpio/gpio-aspeed.c:12: include/asm-generic/bitops/find.h:28:22: note: expected 'const long unsigned int *' but argument is of type 'const u32 * {aka const unsigned int *}' extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/find_next_zero_bit +58 include/asm-generic/bitops/find.h 708ff2a0 Akinobu Mita 2010-09-29 42 extern unsigned long find_first_bit(const unsigned long *addr, 708ff2a0 Akinobu Mita 2010-09-29 43 unsigned long size); 708ff2a0 Akinobu Mita 2010-09-29 44 708ff2a0 Akinobu Mita 2010-09-29 45 /** 708ff2a0 Akinobu Mita 2010-09-29 46 * find_first_zero_bit - find the first cleared bit in a memory region 708ff2a0 Akinobu Mita 2010-09-29 47 * @addr: The address to start the search at ec778edf Cody P Schafer 2013-11-12 48 * @size: The maximum number of bits to search 708ff2a0 Akinobu Mita 2010-09-29 49 * 708ff2a0 Akinobu Mita 2010-09-29 50 * Returns the bit number of the first cleared bit. ec778edf Cody P Schafer 2013-11-12 51 * If no bits are zero, returns @size. 708ff2a0 Akinobu Mita 2010-09-29 52 */ 708ff2a0 Akinobu Mita 2010-09-29 53 extern unsigned long find_first_zero_bit(const unsigned long *addr, 708ff2a0 Akinobu Mita 2010-09-29 54 unsigned long size); 708ff2a0 Akinobu Mita 2010-09-29 55 #else /* CONFIG_GENERIC_FIND_FIRST_BIT */ 708ff2a0 Akinobu Mita 2010-09-29 56 c7f612cd Akinobu Mita 2006-03-26 57 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) c7f612cd Akinobu Mita 2006-03-26 @58 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) c7f612cd Akinobu Mita 2006-03-26 59 708ff2a0 Akinobu Mita 2010-09-29 60 #endif /* CONFIG_GENERIC_FIND_FIRST_BIT */ 708ff2a0 Akinobu Mita 2010-09-29 61 c7f612cd Akinobu Mita 2006-03-26 62 #endif /*_ASM_GENERIC_BITOPS_FIND_H_ */ :::::: The code at line 58 was first introduced by commit :::::: c7f612cdf091def01454e7e132c7d7a3f419fbc4 [PATCH] bitops: generic find_{next,first}{,_zero}_bit() :::::: TO: Akinobu Mita <mita@xxxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip