lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 28 Oct 2021 12:06:53 +0800
From:   kernel test robot <lkp@...el.com>
To:     Coly Li <colyli@...e.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.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'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (38478 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ