From: kernel test robot <lkp@intel.com>
To: Coly Li <colyli@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [colyli-bcache:nvdimm-meta 23/23] drivers/md/bcache/alloc.c:481:6: warning: no previous prototype for '__bch_nvmpg_bucket_free'
Date: Thu, 28 Oct 2021 12:06:53 +0800 [thread overview]
Message-ID: <202110281245.PK3fhXqc-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4080 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta
head: 8ebe8e635e612489a10ed35a1d8bf344daaf8424
commit: 8ebe8e635e612489a10ed35a1d8bf344daaf8424 [23/23] bcache: store btree nodes on nvdimm
config: i386-debian-10.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=8ebe8e635e612489a10ed35a1d8bf344daaf8424
git remote add colyli-bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git
git fetch --no-tags colyli-bcache nvdimm-meta
git checkout 8ebe8e635e612489a10ed35a1d8bf344daaf8424
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
In file included from drivers/md/bcache/alloc.c:66:
drivers/md/bcache/nvmpg.h:167:21: error: static declaration of 'bch_nvmpg_offset_to_ptr' follows non-static declaration
167 | static inline void *bch_nvmpg_offset_to_ptr(unsigned long offset)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvmpg.h:102:7: note: previous declaration of 'bch_nvmpg_offset_to_ptr' was here
102 | void *bch_nvmpg_offset_to_ptr(unsigned long offset);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvmpg.h:172:29: error: static declaration of 'bch_nvmpg_ptr_to_offset' follows non-static declaration
172 | static inline unsigned long bch_nvmpg_ptr_to_offset(struct bch_nvmpg_ns *ns, void *ptr)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvmpg.h:103:15: note: previous declaration of 'bch_nvmpg_ptr_to_offset' was here
103 | unsigned long bch_nvmpg_ptr_to_offset(struct bch_nvmpg_ns *ns, void *ptr);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/md/bcache/alloc.c:481:6: warning: no previous prototype for '__bch_nvmpg_bucket_free' [-Wmissing-prototypes]
481 | void __bch_nvmpg_bucket_free(struct cache_set *c, struct bkey *k)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/alloc.c: In function '__bch_nvmpg_bucket_free':
>> drivers/md/bcache/alloc.c:488:23: warning: passing argument 1 of 'bch_nvmpg_free_pages' makes pointer from integer without a cast [-Wint-conversion]
488 | bch_nvmpg_free_pages(nvmpg_offset, order, c->set_uuid);
| ^~~~~~~~~~~~
| |
| long unsigned int
In file included from drivers/md/bcache/alloc.c:66:
drivers/md/bcache/nvmpg.h:140:47: note: expected 'void *' but argument is of type 'long unsigned int'
140 | static inline void bch_nvmpg_free_pages(void *addr, int order, const char *uuid) { }
| ~~~~~~^~~~
In file included from drivers/md/bcache/nvmpg.h:8,
from drivers/md/bcache/alloc.c:66:
At top level:
drivers/md/bcache/nvmpg_format.h:132:19: warning: 'bch_nvmpg_recs_magic' defined but not used [-Wunused-const-variable=]
132 | static const __u8 bch_nvmpg_recs_magic[] = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/md/bcache/nvmpg_format.h:129:19: warning: 'bch_nvmpg_magic' defined but not used [-Wunused-const-variable=]
129 | static const __u8 bch_nvmpg_magic[] = {
| ^~~~~~~~~~~~~~~
vim +/__bch_nvmpg_bucket_free +481 drivers/md/bcache/alloc.c
480
> 481 void __bch_nvmpg_bucket_free(struct cache_set *c, struct bkey *k)
482 {
483 int order;
484 unsigned long nvmpg_offset;
485
486 order = ilog2(c->cache->sb.bucket_size / PAGE_SECTORS);
487 nvmpg_offset = bkey_offset_to_nvmpg_offset(PTR_OFFSET(k, 0));
> 488 bch_nvmpg_free_pages(nvmpg_offset, order, c->set_uuid);
489 }
490
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38478 bytes --]
reply other threads:[~2021-10-28 4:07 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=202110281245.PK3fhXqc-lkp@intel.com \
--to=lkp@intel.com \
--cc=colyli@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®