tree:
https://github.com/kdave/btrfs-devel.git ext/aota/zoned-7
head: 17046312f8c0a16a96b4b3a145f4b30be84e6ede
commit: bc960447dd5838f71d4ef88b107e8329a00c4f1d [133/162] btrfs: implement zoned chunk
allocator
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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
git checkout bc960447dd5838f71d4ef88b107e8329a00c4f1d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from fs/btrfs/zoned.c:9:
> include/asm-generic/bitops/find.h:78:60: error: expected
declaration specifiers or '...' before '(' token
78 | #define
find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:317:19: note: in expansion of macro
'find_first_zero_bit'
317 | static inline int find_first_zero_bit(const unsigned long *vaddr,
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/bitops/find.h:78:68: error: expected declaration specifiers or
'...' before '(' token
78 | #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:317:19: note: in expansion of macro
'find_first_zero_bit'
317 | static inline int find_first_zero_bit(const unsigned long *vaddr,
| ^~~~~~~~~~~~~~~~~~~
> include/asm-generic/bitops/find.h:78:76: error: expected
declaration specifiers or '...' before numeric constant
78 | #define
find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:317:19: note: in expansion of macro
'find_first_zero_bit'
317 | static inline int find_first_zero_bit(const unsigned long *vaddr,
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
> arch/m68k/include/asm/bitops.h:341: warning:
"find_first_zero_bit" redefined
341 | #define find_first_zero_bit
find_first_zero_bit
|
In file included from fs/btrfs/zoned.c:9:
include/asm-generic/bitops/find.h:78: note: this is the location of the previous
definition
78 | #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
|
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
> arch/m68k/include/asm/bitops.h:343:19: error: conflicting types
for 'find_next_zero_bit'
343 | static inline int
find_next_zero_bit(const unsigned long *vaddr, int size,
| ^~~~~~~~~~~~~~~~~~
In file included from fs/btrfs/zoned.c:9:
include/asm-generic/bitops/find.h:45:22: note: previous declaration of
'find_next_zero_bit' was here
45 | extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
arch/m68k/include/asm/bitops.h: In function 'find_next_zero_bit':
> arch/m68k/include/asm/bitops.h:341:29: error: implicit
declaration of function 'find_first_zero_bit'; did you mean
'find_next_zero_bit'? [-Werror=implicit-function-declaration]
341 |
#define find_first_zero_bit find_first_zero_bit
| ^~~~~~~~~~~~~~~~~~~
arch/m68k/include/asm/bitops.h:369:18: note: in expansion of macro
'find_first_zero_bit'
369 | return offset + find_first_zero_bit(p, size - offset);
| ^~~~~~~~~~~~~~~~~~~
In file included from fs/btrfs/zoned.c:9:
arch/m68k/include/asm/bitops.h: At top level:
include/asm-generic/bitops/find.h:75:50: error: expected declaration specifiers or
'...' before '(' token
75 | #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:373:19: note: in expansion of macro
'find_first_bit'
373 | static inline int find_first_bit(const unsigned long *vaddr, unsigned size)
| ^~~~~~~~~~~~~~
include/asm-generic/bitops/find.h:75:58: error: expected declaration specifiers or
'...' before '(' token
75 | #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:373:19: note: in expansion of macro
'find_first_bit'
373 | static inline int find_first_bit(const unsigned long *vaddr, unsigned size)
| ^~~~~~~~~~~~~~
include/asm-generic/bitops/find.h:75:66: error: expected declaration specifiers or
'...' before numeric constant
75 | #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
| ^
arch/m68k/include/asm/bitops.h:373:19: note: in expansion of macro
'find_first_bit'
373 | static inline int find_first_bit(const unsigned long *vaddr, unsigned size)
| ^~~~~~~~~~~~~~
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
> arch/m68k/include/asm/bitops.h:396: warning:
"find_first_bit" redefined
396 | #define find_first_bit
find_first_bit
|
In file included from fs/btrfs/zoned.c:9:
include/asm-generic/bitops/find.h:75: note: this is the location of the previous
definition
75 | #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
|
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
> arch/m68k/include/asm/bitops.h:398:19: error: conflicting types
for 'find_next_bit'
398 | static inline int find_next_bit(const
unsigned long *vaddr, int size,
| ^~~~~~~~~~~~~
In file included from fs/btrfs/zoned.c:9:
include/asm-generic/bitops/find.h:15:22: note: previous declaration of
'find_next_bit' was here
15 | extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
| ^~~~~~~~~~~~~
In file included from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
arch/m68k/include/asm/bitops.h: In function 'find_next_bit':
> arch/m68k/include/asm/bitops.h:396:24: error: implicit
declaration of function 'find_first_bit'; did you mean 'find_next_bit'?
[-Werror=implicit-function-declaration]
396 | #define find_first_bit
find_first_bit
| ^~~~~~~~~~~~~~
arch/m68k/include/asm/bitops.h:424:18: note: in expansion of macro
'find_first_bit'
424 | return offset + find_first_bit(p, size - offset);
| ^~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from fs/btrfs/zoned.c:10:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
#
https://github.com/kdave/btrfs-devel/commit/bc960447dd5838f71d4ef88b107e8...
git remote add kdave-btrfs-devel
https://github.com/kdave/btrfs-devel.git
git fetch --no-tags kdave-btrfs-devel ext/aota/zoned-7
git checkout bc960447dd5838f71d4ef88b107e8329a00c4f1d
vim +78 include/asm-generic/bitops/find.h
708ff2a0097b02 Akinobu Mita 2010-09-29 73
0ade34c37012ea Clement Courbet 2018-02-06 74 #ifndef find_first_bit
c7f612cdf091de Akinobu Mita 2006-03-26 75 #define find_first_bit(addr, size)
find_next_bit((addr), (size), 0)
0ade34c37012ea Clement Courbet 2018-02-06 76 #endif
0ade34c37012ea Clement Courbet 2018-02-06 77 #ifndef find_first_zero_bit
c7f612cdf091de Akinobu Mita 2006-03-26 @78 #define find_first_zero_bit(addr, size)
find_next_zero_bit((addr), (size), 0)
0ade34c37012ea Clement Courbet 2018-02-06 79 #endif
c7f612cdf091de Akinobu Mita 2006-03-26 80
:::::: The code at line 78 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