[openeuler:openEuler-1.0-LTS 1942/1942] drivers/md/bcache/btree.h:386:14: warning: redefinition of typedef 'btree_map_keys_fn' is a C11 feature
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: b4a620ff5be6873f1669fa06c90cd15a0d569021 [1942/1942] make bch_btree_check() to be multiple threads config: x86_64-randconfig-006-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140641.mYQpHQXV-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140641.mYQpHQXV-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140641.mYQpHQXV-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:354:9: note: previous definition is here 354 | #define __SANITIZE_ADDRESS__ 1 | ^ In file included from drivers/md/bcache/super.c:12:
drivers/md/bcache/btree.h:386:14: warning: redefinition of typedef 'btree_map_keys_fn' is a C11 feature [-Wtypedef-redefinition] 386 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ drivers/md/bcache/btree.h:288:14: note: previous definition is here 288 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ 2 warnings generated. -- In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:354:9: note: previous definition is here 354 | #define __SANITIZE_ADDRESS__ 1 | ^ In file included from drivers/md/bcache/acache.c:18: In file included from drivers/md/bcache/request.h:4: drivers/md/bcache/btree.h:386:14: warning: redefinition of typedef 'btree_map_keys_fn' is a C11 feature [-Wtypedef-redefinition] 386 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ drivers/md/bcache/btree.h:288:14: note: previous definition is here 288 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ drivers/md/bcache/acache.c:73:5: warning: no previous prototype for function 'acache_open' [-Wmissing-prototypes] 73 | int acache_open(struct inode *inode, struct file *filp) | ^ drivers/md/bcache/acache.c:73:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 73 | int acache_open(struct inode *inode, struct file *filp) | ^ | static drivers/md/bcache/acache.c:91:5: warning: no previous prototype for function 'acache_release' [-Wmissing-prototypes] 91 | int acache_release(struct inode *inode, struct file *filp) | ^ drivers/md/bcache/acache.c:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 91 | int acache_release(struct inode *inode, struct file *filp) | ^ | static drivers/md/bcache/acache.c:97:9: warning: no previous prototype for function 'read_circ_slice' [-Wmissing-prototypes] 97 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf, | ^ drivers/md/bcache/acache.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 97 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf, | ^ | static drivers/md/bcache/acache.c:232:6: warning: no previous prototype for function 'init_acache_circ' [-Wmissing-prototypes] 232 | void init_acache_circ(struct acache_circ **circ, void *startaddr) | ^ drivers/md/bcache/acache.c:232:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 232 | void init_acache_circ(struct acache_circ **circ, void *startaddr) | ^ | static drivers/md/bcache/acache.c:261:5: warning: no previous prototype for function 'acache_prefetch_init' [-Wmissing-prototypes] 261 | int acache_prefetch_init(struct acache_device *adev) | ^ drivers/md/bcache/acache.c:261:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 261 | int acache_prefetch_init(struct acache_device *adev) | ^ | static drivers/md/bcache/acache.c:514:20: warning: no previous prototype for function 'get_cached_device_by_dev' [-Wmissing-prototypes] 514 | struct cached_dev *get_cached_device_by_dev(dev_t dev) | ^ drivers/md/bcache/acache.c:514:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 514 | struct cached_dev *get_cached_device_by_dev(dev_t dev) | ^ | static drivers/md/bcache/acache.c:527:13: warning: no previous prototype for function 'get_bio_by_item' [-Wmissing-prototypes] 527 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item) | ^ drivers/md/bcache/acache.c:527:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 527 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item) | ^ | static 9 warnings generated. -- In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:354:9: note: previous definition is here 354 | #define __SANITIZE_ADDRESS__ 1 | ^ In file included from drivers/md/bcache/journal.c:9: drivers/md/bcache/btree.h:386:14: warning: redefinition of typedef 'btree_map_keys_fn' is a C11 feature [-Wtypedef-redefinition] 386 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ drivers/md/bcache/btree.h:288:14: note: previous definition is here 288 | typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, | ^ drivers/md/bcache/journal.c:320:6: warning: no previous prototype for function 'is_discard_enabled' [-Wmissing-prototypes] 320 | bool is_discard_enabled(struct cache_set *s) | ^ drivers/md/bcache/journal.c:320:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 320 | bool is_discard_enabled(struct cache_set *s) | ^ | static 3 warnings generated.
vim +/btree_map_keys_fn +386 drivers/md/bcache/btree.h 48dad8baf92fe8 Kent Overstreet 2013-09-10 385 fc2d5988b5972b Coly Li 2018-08-11 @386 typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b, fc2d5988b5972b Coly Li 2018-08-11 387 struct bkey *k); fc2d5988b5972b Coly Li 2018-08-11 388 int bch_btree_map_keys(struct btree_op *op, struct cache_set *c, fc2d5988b5972b Coly Li 2018-08-11 389 struct bkey *from, btree_map_keys_fn *fn, int flags); fc2d5988b5972b Coly Li 2018-08-11 390 :::::: The code at line 386 was first introduced by commit :::::: fc2d5988b5972bced859944986fb36d902ac3698 bcache: add identifier names to arguments of function definitions :::::: TO: Coly Li <colyli@suse.de> :::::: CC: Jens Axboe <axboe@kernel.dk> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot