* [bcache:nvdimm-meta 5/8] drivers/md/bcache/nvm-pages.c:287:6: error: redefinition of 'bch_nvm_free_pages'
@ 2021-01-08 9:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-08 9:31 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5626 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head: cafe7a7d88c5585454eb1285218db1e60a174797
commit: f9f3f44e35b3caa3b66bfe5f82c4c7550971e4df [5/8] bcache: bch_nvm_free_pages() of the buddy
config: arc-randconfig-s031-20210108 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=f9f3f44e35b3caa3b66bfe5f82c4c7550971e4df
git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
git fetch --no-tags bcache nvdimm-meta
git checkout f9f3f44e35b3caa3b66bfe5f82c4c7550971e4df
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/md/bcache/nvm-pages.c:287:6: error: redefinition of 'bch_nvm_free_pages'
287 | void bch_nvm_free_pages(void *addr, int order, const char *owner_uuid)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.c:14:
drivers/md/bcache/nvm-pages.h:98:20: note: previous definition of 'bch_nvm_free_pages' was here
98 | static inline void bch_nvm_free_pages(void *addr, int order, const char *owner_uuid) { }
| ^~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvm-pages.c:327:7: error: redefinition of 'bch_nvm_alloc_pages'
327 | void *bch_nvm_alloc_pages(int order, const char *owner_uuid)
| ^~~~~~~~~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.c:14:
drivers/md/bcache/nvm-pages.h:93:21: note: previous definition of 'bch_nvm_alloc_pages' was here
93 | static inline void *bch_nvm_alloc_pages(int order, const char *owner_uuid)
| ^~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvm-pages.c:574:27: error: redefinition of 'bch_register_namespace'
574 | struct bch_nvm_namespace *bch_register_namespace(const char *dev_path)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.c:14:
drivers/md/bcache/nvm-pages.h:83:41: note: previous definition of 'bch_register_namespace' was here
83 | static inline struct bch_nvm_namespace *bch_register_namespace(const char *dev_path)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvm-pages.c:670:12: error: redefinition of 'bch_nvm_init'
670 | int __init bch_nvm_init(void)
| ^~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.c:14:
drivers/md/bcache/nvm-pages.h:87:19: note: previous definition of 'bch_nvm_init' was here
87 | static inline int bch_nvm_init(void)
| ^~~~~~~~~~~~
drivers/md/bcache/nvm-pages.c:686:6: error: redefinition of 'bch_nvm_exit'
686 | void bch_nvm_exit(void)
| ^~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.c:14:
drivers/md/bcache/nvm-pages.h:91:20: note: previous definition of 'bch_nvm_exit' was here
91 | static inline void bch_nvm_exit(void) { }
| ^~~~~~~~~~~~
In file included from drivers/md/bcache/nvm-pages.h:6,
from drivers/md/bcache/nvm-pages.c:14:
include/uapi/linux/bcache-nvm.h:105:19: warning: 'nvm_pages_pgalloc_magic' defined but not used [-Wunused-const-variable=]
105 | static const char nvm_pages_pgalloc_magic[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/bcache-nvm.h:102:19: warning: 'nvm_pages_magic' defined but not used [-Wunused-const-variable=]
102 | static const char nvm_pages_magic[] = {
| ^~~~~~~~~~~~~~~
vim +/bch_nvm_free_pages +287 drivers/md/bcache/nvm-pages.c
286
> 287 void bch_nvm_free_pages(void *addr, int order, const char *owner_uuid)
288 {
289 struct bch_nvm_namespace *ns;
290 struct bch_owner_list *owner_list;
291 struct bch_nvm_alloced_recs *alloced_recs;
292 int r;
293
294 mutex_lock(&only_set->lock);
295
296 ns = find_nvm_by_addr(addr, order);
297 if (!ns) {
298 pr_info("can't find nvm_dev by kaddr %p\n", addr);
299 goto unlock;
300 }
301
302 owner_list = find_owner_list(owner_uuid, false);
303 if (!owner_list) {
304 pr_info("can't found owner(uuid=%s)\n", owner_uuid);
305 goto unlock;
306 }
307
308 alloced_recs = find_nvm_alloced_recs(owner_list, ns, false);
309 if (!alloced_recs) {
310 pr_info("can't find alloced_recs(uuid=%s)\n", ns->uuid);
311 goto unlock;
312 }
313
314 r = remove_extent(alloced_recs, addr, order);
315 if (r < 0) {
316 pr_info("can't find extent\n");
317 goto unlock;
318 }
319
320 __free_space(ns, addr, order);
321
322 unlock:
323 mutex_unlock(&only_set->lock);
324 }
325 EXPORT_SYMBOL_GPL(bch_nvm_free_pages);
326
---
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: 20675 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-08 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 9:31 [bcache:nvdimm-meta 5/8] drivers/md/bcache/nvm-pages.c:287:6: error: redefinition of 'bch_nvm_free_pages' kernel test robot
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.