tree:
https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
nvdimm-meta
head: 33041d6ea183e8b2677af33ff7bd08b872c7a62d
commit: 6f1570dcb4e7c91cae320b058be6aff3576e4858 [10/13] bcache: initialize bcache journal
for NVDIMM meta device
config: parisc-randconfig-r011-20210209 (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/c...
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 6f1570dcb4e7c91cae320b058be6aff3576e4858
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/md/bcache/journal.c: In function 'find_journal_nvm_base':
drivers/md/bcache/journal.c:997:21: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
997 | if (cur->kaddr == (void *)ca->sb.d[0]) {
| ^
drivers/md/bcache/journal.c: In function '__bch_journal_nvdimm_init':
drivers/md/bcache/journal.c:1058:4: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
1058 | (u64)(journal_nvm_base + (ca->sb.bucket_size * i));
| ^
In function 'get_nvdimm_journal_space',
inlined from '__bch_journal_nvdimm_init' at
drivers/md/bcache/journal.c:1045:21,
inlined from 'bch_journal_init' at drivers/md/bcache/journal.c:1076:9:
> drivers/md/bcache/journal.c:1034:3: warning: argument 1 null
where non-null expected [-Wnonnull]
1034 | memset(ret, 0, (1 << order) *
PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/string.h:21,
from include/linux/uuid.h:12,
from include/linux/mod_devicetable.h:13,
from arch/parisc/include/asm/hardware.h:5,
from arch/parisc/include/asm/processor.h:16,
from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from arch/parisc/include/asm/bitops.h:13,
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/highmem.h:5,
from include/linux/bio.h:8,
from drivers/md/bcache/bcache.h:182,
from drivers/md/bcache/journal.c:8:
drivers/md/bcache/journal.c: In function 'bch_journal_init':
arch/parisc/include/asm/string.h:24:14: note: in a call to function 'memset'
declared here
24 | extern void *memset(void *, int, size_t);
| ^~~~~~
vim +1034 drivers/md/bcache/journal.c
1017
1018 static void *get_nvdimm_journal_space(struct cache *ca)
1019 {
1020 struct bch_extent *allocated_list = NULL;
1021 void *ret = NULL;
1022
1023 allocated_list = bch_get_allocated_pages(ca->sb.set_uuid);
1024 if (allocated_list) {
1025 ret = find_journal_nvm_base(allocated_list, ca);
1026 bch_release_nvm_extent_list(allocated_list);
1027 }
1028
1029 if (!ret) {
1030 int order = ilog2(ca->sb.bucket_size * ca->sb.njournal_buckets /
1031 PAGE_SECTORS);
1032
1033 ret = bch_nvm_alloc_pages(order, ca->sb.set_uuid);
1034 memset(ret, 0, (1 << order) * PAGE_SIZE);
1035 }
1036
1037 return ret;
1038 }
1039
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org