From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [kdave-btrfs-devel:ext/aota/zoned-7 133/162] include/asm-generic/bitops/find.h:78:60: error: expected declaration specifiers or '...' before '(' token
Date: Tue, 15 Sep 2020 08:35:06 +0800 [thread overview]
Message-ID: <202009150852.PyG6TtgQ%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 10818 bytes --]
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@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/bc960447dd5838f71d4ef88b107e8329a00c4f1d
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@line 78 was first introduced by commit
:::::: c7f612cdf091def01454e7e132c7d7a3f419fbc4 [PATCH] bitops: generic find_{next,first}{,_zero}_bit()
:::::: TO: Akinobu Mita <mita@miraclelinux.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 57813 bytes --]
reply other threads:[~2020-09-15 0:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202009150852.PyG6TtgQ%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.