tree:
https://github.com/norov/linux find_bit_static
head: 9647d9f4cd1b259c620e06337010396d5a324f79
commit: 095e1f9a839a3fa53df644478de0a8afcf71f6a8 [2/8] arch: rearrahge headers inclusion
order in asm/bitops for m68k and sh
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://github.com/norov/linux/commit/095e1f9a839a3fa53df644478de0a8afcf7...
git remote add norov
https://github.com/norov/linux
git fetch --no-tags norov find_bit_static
git checkout 095e1f9a839a3fa53df644478de0a8afcf71f6a8
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
> include/asm-generic/bitops/le.h:15:9: error: implicit declaration
of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'?
[-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr,
size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
> include/asm-generic/bitops/le.h:21:9: error: implicit declaration
of function 'find_next_bit'; did you mean 'find_next_bit_le'?
[-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size,
offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
> include/asm-generic/bitops/le.h:27:9: error: implicit declaration
of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'?
[-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr,
size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: At top level:
> include/asm-generic/bitops/find.h:15:22: error: conflicting types
for 'find_next_bit'
15 | extern unsigned long find_next_bit(const
unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of
'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
> include/asm-generic/bitops/find.h:45:22: error: conflicting types
for 'find_next_zero_bit'
45 | extern unsigned long
find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of
'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
> include/asm-generic/bitops/le.h:15:9: error: implicit declaration
of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'?
[-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr,
size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
> include/asm-generic/bitops/le.h:21:9: error: implicit declaration
of function 'find_next_bit'; did you mean 'find_next_bit_le'?
[-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size,
offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
> include/asm-generic/bitops/le.h:27:9: error: implicit declaration
of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'?
[-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr,
size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/find.h: At top level:
> include/asm-generic/bitops/find.h:15:22: error: conflicting types
for 'find_next_bit'
15 | extern unsigned long find_next_bit(const
unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of
'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
> include/asm-generic/bitops/find.h:45:22: error: conflicting types
for 'find_next_zero_bit'
45 | extern unsigned long
find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of
'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:19,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from include/linux/ring_buffer.h:5,
from kernel//trace/ring_buffer_benchmark.c:7:
include/linux/page-flags-layout.h:6:10: fatal error: generated/bounds.h: No such file
or directory
6 | #include <generated/bounds.h>
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
> include/asm-generic/bitops/le.h:15:9: error: implicit declaration
of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'?
[-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr,
size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
> include/asm-generic/bitops/le.h:21:9: error: implicit declaration
of function 'find_next_bit'; did you mean 'find_next_bit_le'?
[-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size,
offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
> include/asm-generic/bitops/le.h:27:9: error: implicit declaration
of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'?
[-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr,
size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/find.h: At top level:
> include/asm-generic/bitops/find.h:15:22: error: conflicting types
for 'find_next_bit'
15 | extern unsigned long find_next_bit(const
unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of
'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
> include/asm-generic/bitops/find.h:45:22: error: conflicting types
for 'find_next_zero_bit'
45 | extern unsigned long
find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of
'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/dcache.h:14,
from include/linux/fs.h:8,
from include/linux/debugfs.h:15,
from kernel//time/test_udelay.c:13:
include/linux/lockref.h:19:10: fatal error: generated/bounds.h: No such file or
directory
19 | #include <generated/bounds.h>
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
--
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
> include/asm-generic/bitops/le.h:15:9: error: implicit declaration
of function 'find_next_zero_bit'; did you mean 'find_next_zero_bit_le'?
[-Werror=implicit-function-declaration]
15 | return find_next_zero_bit(addr,
size, offset);
| ^~~~~~~~~~~~~~~~~~
| find_next_zero_bit_le
include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
> include/asm-generic/bitops/le.h:21:9: error: implicit declaration
of function 'find_next_bit'; did you mean 'find_next_bit_le'?
[-Werror=implicit-function-declaration]
21 | return find_next_bit(addr, size,
offset);
| ^~~~~~~~~~~~~
| find_next_bit_le
include/asm-generic/bitops/le.h: In function 'find_first_zero_bit_le':
> include/asm-generic/bitops/le.h:27:9: error: implicit declaration
of function 'find_first_zero_bit'; did you mean 'find_first_zero_bit_le'?
[-Werror=implicit-function-declaration]
27 | return find_first_zero_bit(addr,
size);
| ^~~~~~~~~~~~~~~~~~~
| find_first_zero_bit_le
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/find.h: At top level:
> include/asm-generic/bitops/find.h:15:22: error: conflicting types
for 'find_next_bit'
15 | extern unsigned long find_next_bit(const
unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:21:9: note: previous implicit declaration of
'find_next_bit' was here
21 | return find_next_bit(addr, size, offset);
| ^~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:71,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
> include/asm-generic/bitops/find.h:45:22: error: conflicting types
for 'find_next_zero_bit'
45 | extern unsigned long
find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from arch/sh/include/asm/bitops.h:65,
from include/linux/bitops.h:32,
from include/linux/kernel.h:11,
from include/asm-generic/bug.h:20,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/bitops/le.h:15:9: note: previous implicit declaration of
'find_next_zero_bit' was here
15 | return find_next_zero_bit(addr, size, offset);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1220: 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.
..
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 +/find_next_bit +15 include/asm-generic/bitops/find.h
c7f612cdf091def0 Akinobu Mita 2006-03-26 4
19de85ef574c3a21 Akinobu Mita 2011-05-26 5 #ifndef find_next_bit
d852a6afd91fc928 Akinobu Mita 2010-09-29 6 /**
d852a6afd91fc928 Akinobu Mita 2010-09-29 7 * find_next_bit - find the next set bit
in a memory region
d852a6afd91fc928 Akinobu Mita 2010-09-29 8 * @addr: The address to base the search
on
d852a6afd91fc928 Akinobu Mita 2010-09-29 9 * @offset: The bitnumber to start
searching at
d852a6afd91fc928 Akinobu Mita 2010-09-29 10 * @size: The bitmap size in bits
ec778edf97dcaa51 Cody P Schafer 2013-11-12 11 *
ec778edf97dcaa51 Cody P Schafer 2013-11-12 12 * Returns the bit number for the next
set bit
ec778edf97dcaa51 Cody P Schafer 2013-11-12 13 * If no bits are set, returns @size.
d852a6afd91fc928 Akinobu Mita 2010-09-29 14 */
c7f612cdf091def0 Akinobu Mita 2006-03-26 @15 extern unsigned long find_next_bit(const
unsigned long *addr, unsigned long
c7f612cdf091def0 Akinobu Mita 2006-03-26 16 size, unsigned long offset);
19de85ef574c3a21 Akinobu Mita 2011-05-26 17 #endif
c7f612cdf091def0 Akinobu Mita 2006-03-26 18
0ade34c37012ea5c Clement Courbet 2018-02-06 19 #ifndef find_next_and_bit
0ade34c37012ea5c Clement Courbet 2018-02-06 20 /**
0ade34c37012ea5c Clement Courbet 2018-02-06 21 * find_next_and_bit - find the next set
bit in both memory regions
0ade34c37012ea5c Clement Courbet 2018-02-06 22 * @addr1: The first address to base the
search on
0ade34c37012ea5c Clement Courbet 2018-02-06 23 * @addr2: The second address to base the
search on
0ade34c37012ea5c Clement Courbet 2018-02-06 24 * @offset: The bitnumber to start
searching at
0ade34c37012ea5c Clement Courbet 2018-02-06 25 * @size: The bitmap size in bits
0ade34c37012ea5c Clement Courbet 2018-02-06 26 *
0ade34c37012ea5c Clement Courbet 2018-02-06 27 * Returns the bit number for the next
set bit
0ade34c37012ea5c Clement Courbet 2018-02-06 28 * If no bits are set, returns @size.
0ade34c37012ea5c Clement Courbet 2018-02-06 29 */
0ade34c37012ea5c Clement Courbet 2018-02-06 30 extern unsigned long
find_next_and_bit(const unsigned long *addr1,
0ade34c37012ea5c Clement Courbet 2018-02-06 31 const unsigned long *addr2, unsigned
long size,
0ade34c37012ea5c Clement Courbet 2018-02-06 32 unsigned long offset);
0ade34c37012ea5c Clement Courbet 2018-02-06 33 #endif
0ade34c37012ea5c Clement Courbet 2018-02-06 34
19de85ef574c3a21 Akinobu Mita 2011-05-26 35 #ifndef find_next_zero_bit
d852a6afd91fc928 Akinobu Mita 2010-09-29 36 /**
d852a6afd91fc928 Akinobu Mita 2010-09-29 37 * find_next_zero_bit - find the next
cleared bit in a memory region
d852a6afd91fc928 Akinobu Mita 2010-09-29 38 * @addr: The address to base the search
on
d852a6afd91fc928 Akinobu Mita 2010-09-29 39 * @offset: The bitnumber to start
searching at
d852a6afd91fc928 Akinobu Mita 2010-09-29 40 * @size: The bitmap size in bits
ec778edf97dcaa51 Cody P Schafer 2013-11-12 41 *
ec778edf97dcaa51 Cody P Schafer 2013-11-12 42 * Returns the bit number of the next
zero bit
ec778edf97dcaa51 Cody P Schafer 2013-11-12 43 * If no bits are zero, returns @size.
d852a6afd91fc928 Akinobu Mita 2010-09-29 44 */
c7f612cdf091def0 Akinobu Mita 2006-03-26 @45 extern unsigned long
find_next_zero_bit(const unsigned long *addr, unsigned
c7f612cdf091def0 Akinobu Mita 2006-03-26 46 long size, unsigned long offset);
19de85ef574c3a21 Akinobu Mita 2011-05-26 47 #endif
c7f612cdf091def0 Akinobu Mita 2006-03-26 48
:::::: The code at line 15 was first introduced by commit
:::::: c7f612cdf091def01454e7e132c7d7a3f419fbc4 [PATCH] bitops: generic
find_{next,first}{,_zero}_bit()
:::::: TO: Akinobu Mita <mita(a)miraclelinux.com>
:::::: CC: Linus Torvalds <torvalds(a)g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org