tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 93717cde744f9d26aa1b4561f7d9ba2a230459eb commit: 9a73242564ee491f17c929ea7b82f5ce208fcd00 [11305/11331] Merge branch 'akpm-current/current' config: powerpc-allyesconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=9a73242564ee491f17c929ea7b82f5ce208fcd00 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 9a73242564ee491f17c929ea7b82f5ce208fcd00 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/mutex.h:17, from include/linux/notifier.h:14, from include/linux/clk.h:14, from drivers/irqchip/irq-ingenic-tcu.c:7: drivers/irqchip/irq-ingenic-tcu.c: In function 'ingenic_tcu_intc_cascade': >> include/linux/find.h:40:23: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'uint32_t[1]' {aka 'unsigned int[1]'} [-Warray-bounds] 40 | val = *addr & GENMASK(size - 1, offset); | ^~~~~ drivers/irqchip/irq-ingenic-tcu.c:30:18: note: while referencing 'irq_reg' 30 | uint32_t irq_reg, irq_mask; | ^~~~~~~ In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/mutex.h:17, from include/linux/notifier.h:14, from include/linux/clk.h:14, from drivers/irqchip/irq-ingenic-tcu.c:7: >> include/linux/find.h:40:23: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'uint32_t[1]' {aka 'unsigned int[1]'} [-Warray-bounds] 40 | val = *addr & GENMASK(size - 1, offset); | ^~~~~ drivers/irqchip/irq-ingenic-tcu.c:30:18: note: while referencing 'irq_reg' 30 | uint32_t irq_reg, irq_mask; | ^~~~~~~ -- drivers/iio/adc/stmpe-adc.c:356:34: warning: 'stmpe_adc_ids' defined but not used [-Wunused-const-variable=] 356 | static const struct of_device_id stmpe_adc_ids[] = { | ^~~~~~~~~~~~~ In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/swait.h:7, from include/linux/completion.h:12, from drivers/iio/adc/stmpe-adc.c:10: drivers/iio/adc/stmpe-adc.c: In function 'stmpe_adc_probe': >> include/linux/find.h:98:23: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'u32[1]' {aka 'unsigned int[1]'} [-Warray-bounds] 98 | val = *addr | ~GENMASK(size - 1, offset); | ^~~~~ drivers/iio/adc/stmpe-adc.c:258:13: note: while referencing 'norequest_mask' 258 | u32 norequest_mask = 0; | ^~~~~~~~~~~~~~ In file included from include/linux/bitmap.h:9, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/swait.h:7, from include/linux/completion.h:12, from drivers/iio/adc/stmpe-adc.c:10: >> include/linux/find.h:98:23: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'u32[1]' {aka 'unsigned int[1]'} [-Warray-bounds] 98 | val = *addr | ~GENMASK(size - 1, offset); | ^~~~~ drivers/iio/adc/stmpe-adc.c:258:13: note: while referencing 'norequest_mask' 258 | u32 norequest_mask = 0; | ^~~~~~~~~~~~~~ vim +40 include/linux/find.h 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 19 19de85ef574c3a include/asm-generic/bitops/find.h Akinobu Mita 2011-05-26 20 #ifndef find_next_bit d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 21 /** d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 22 * find_next_bit - find the next set bit in a memory region d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 23 * @addr: The address to base the search on d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 24 * @offset: The bitnumber to start searching at d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 25 * @size: The bitmap size in bits ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 26 * ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 27 * Returns the bit number for the next set bit ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 28 * If no bits are set, returns @size. d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 29 */ 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 30 static inline 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 31 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 32 unsigned long offset) 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 33 { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 34 if (small_const_nbits(size)) { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 35 unsigned long val; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 36 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 37 if (unlikely(offset >= size)) 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 38 return size; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 39 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 @40 val = *addr & GENMASK(size - 1, offset); 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 41 return val ? __ffs(val) : size; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 42 } 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 43 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 44 return _find_next_bit(addr, NULL, size, offset, 0UL, 0); 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 45 } 19de85ef574c3a include/asm-generic/bitops/find.h Akinobu Mita 2011-05-26 46 #endif c7f612cdf091de include/asm-generic/bitops/find.h Akinobu Mita 2006-03-26 47 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 48 #ifndef find_next_and_bit 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 49 /** 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 50 * find_next_and_bit - find the next set bit in both memory regions 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 51 * @addr1: The first address to base the search on 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 52 * @addr2: The second address to base the search on 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 53 * @offset: The bitnumber to start searching at 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 54 * @size: The bitmap size in bits 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 55 * 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 56 * Returns the bit number for the next set bit 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 57 * If no bits are set, returns @size. 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 58 */ 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 59 static inline 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 60 unsigned long find_next_and_bit(const unsigned long *addr1, 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 61 const unsigned long *addr2, unsigned long size, 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 62 unsigned long offset) 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 63 { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 64 if (small_const_nbits(size)) { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 65 unsigned long val; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 66 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 67 if (unlikely(offset >= size)) 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 68 return size; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 69 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 70 val = *addr1 & *addr2 & GENMASK(size - 1, offset); 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 71 return val ? __ffs(val) : size; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 72 } 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 73 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 74 return _find_next_bit(addr1, addr2, size, offset, 0UL, 0); 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 75 } 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 76 #endif 0ade34c37012ea include/asm-generic/bitops/find.h Clement Courbet 2018-02-06 77 19de85ef574c3a include/asm-generic/bitops/find.h Akinobu Mita 2011-05-26 78 #ifndef find_next_zero_bit d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 79 /** d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 80 * find_next_zero_bit - find the next cleared bit in a memory region d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 81 * @addr: The address to base the search on d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 82 * @offset: The bitnumber to start searching at d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 83 * @size: The bitmap size in bits ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 84 * ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 85 * Returns the bit number of the next zero bit ec778edf97dcaa include/asm-generic/bitops/find.h Cody P Schafer 2013-11-12 86 * If no bits are zero, returns @size. d852a6afd91fc9 include/asm-generic/bitops/find.h Akinobu Mita 2010-09-29 87 */ 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 88 static inline 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 89 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 90 unsigned long offset) 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 91 { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 92 if (small_const_nbits(size)) { 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 93 unsigned long val; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 94 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 95 if (unlikely(offset >= size)) 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 96 return size; 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 97 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 @98 val = *addr | ~GENMASK(size - 1, offset); 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 99 return val == ~0UL ? size : ffz(val); 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 100 } 277a20a498d307 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 101 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 102 return _find_next_bit(addr, NULL, size, offset, ~0UL, 0); 5c88af59f9abc2 include/asm-generic/bitops/find.h Yury Norov 2021-05-06 103 } 19de85ef574c3a include/asm-generic/bitops/find.h Akinobu Mita 2011-05-26 104 #endif c7f612cdf091de include/asm-generic/bitops/find.h Akinobu Mita 2006-03-26 105 :::::: The code at line 40 was first introduced by commit :::::: 277a20a498d30753f5d8a607dbf967bc163552c1 lib: add fast path for find_next_*_bit() :::::: TO: Yury Norov <yury.norov@xxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip