mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [colyli-bcache:nvdimm-meta 23/23] drivers/md/bcache/alloc.c:481:6: warning: no previous prototype for '__bch_nvmpg_bucket_free'
@ 2021-10-28  4:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-28  4:06 UTC (permalink / raw)
  To: Coly Li; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-28  4:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28  4:06 [colyli-bcache:nvdimm-meta 23/23] drivers/md/bcache/alloc.c:481:6: warning: no previous prototype for '__bch_nvmpg_bucket_free' kernel test robot

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®