* [bcache:nvdimm-meta 9/13] drivers/md/bcache/journal.c:987:7: warning: no previous prototype for 'journal_nvm_base'
@ 2021-01-20 16:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-20 16:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3989 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head: d770c3e51e25b3a0ceb5859218da09f725151956
commit: 11ca329aa5d8560e4b90107daa14799a49bda809 [9/13] bcache: initialize journal for nvdimm meta device
config: x86_64-randconfig-s022-20210120 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# 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=11ca329aa5d8560e4b90107daa14799a49bda809
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 11ca329aa5d8560e4b90107daa14799a49bda809
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/md/bcache/journal.c:987:7: warning: no previous prototype for 'journal_nvm_base' [-Wmissing-prototypes]
987 | void *journal_nvm_base(struct bch_extent *list, struct cache *ca)
| ^~~~~~~~~~~~~~~~
>> drivers/md/bcache/journal.c:1006:6: warning: no previous prototype for 'bch_release_nvm_extent_list' [-Wmissing-prototypes]
1006 | void bch_release_nvm_extent_list(struct bch_extent *list)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/md/bcache/journal.c:1017:7: warning: no previous prototype for 'get_nvdimm_journal_space' [-Wmissing-prototypes]
1017 | void *get_nvdimm_journal_space(struct cache *ca)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/journal.c:1034:5: warning: no previous prototype for 'bch_journal_init' [-Wmissing-prototypes]
1034 | int bch_journal_init(struct cache *ca)
| ^~~~~~~~~~~~~~~~
drivers/md/bcache/journal.c: In function 'bch_journal_init':
drivers/md/bcache/journal.c:1039:21: error: implicit declaration of function 'bch_has_feature_nvdimm_meta' [-Werror=implicit-function-declaration]
1039 | bool nvdimm_meta = bch_has_feature_nvdimm_meta(ca->sb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/journal_nvm_base +987 drivers/md/bcache/journal.c
986
> 987 void *journal_nvm_base(struct bch_extent *list, struct cache *ca)
988 {
989 void *ret = NULL;
990 struct jset *jset;
991 struct list_head *cur;
992 struct bch_extent *ext;
993
994 list_for_each(cur, &list->list) {
995 ext = list_entry(cur, struct bch_extent, list);
996 jset = ext->kaddr;
997 if (jset->magic == jset_magic(&ca->sb)) {
998 ret = ext->kaddr;
999 break;
1000 }
1001 }
1002
1003 return ret;
1004 }
1005
> 1006 void bch_release_nvm_extent_list(struct bch_extent *list)
1007 {
1008 struct bch_extent *ext;
1009 struct list_head *cur, *next;
1010
1011 list_for_each_safe(cur, next, &list->list) {
1012 ext = list_entry(cur, struct bch_extent, list);
1013 kfree(ext);
1014 }
1015 }
1016
> 1017 void *get_nvdimm_journal_space(struct cache *ca)
1018 {
1019 struct bch_extent *allocated_list = NULL;
1020 void *ret = NULL;
1021
1022 allocated_list = bch_get_allocated_pages(ca->sb.set_uuid);
1023 if (allocated_list) {
1024 ret = journal_nvm_base(allocated_list, ca);
1025 bch_release_nvm_extent_list(allocated_list);
1026 } else {
1027 int order = ilog2(ca->sb.bucket_size * SB_JOURNAL_BUCKETS);
1028 ret = bch_nvm_alloc_pages(order, ca->sb.set_uuid);
1029 }
1030
1031 return ret;
1032 }
1033
---
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: 36555 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-20 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 16:57 [bcache:nvdimm-meta 9/13] drivers/md/bcache/journal.c:987:7: warning: no previous prototype for 'journal_nvm_base' 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.