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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 15 Sep 2021 04:28:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     David Howells <dhowells@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [dhowells-fs:fscache-iter-3 2/8] fs/fscache/io.c:200:9: warning:
 variable 'len' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-3
head:   3af24cee1e80003b6c8993fa8a601cc0ab9fd6c6
commit: b5606e77b36d6218ef5367fcdbebcbfa1af091bc [2/8] fscache: Implement an alternate I/O interface to replace the old API
config: i386-randconfig-r005-20210915 (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/dhowells/linux-fs.git/commit/?id=b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
        git fetch --no-tags dhowells-fs fscache-iter-3
        git checkout b5606e77b36d6218ef5367fcdbebcbfa1af091bc
        # 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 >>):

   fs/fscache/io.c:164:5: warning: no previous prototype for '__fscache_deprecated_read_page' [-Wmissing-prototypes]
     164 | int __fscache_deprecated_read_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fscache/io.c:194:5: warning: no previous prototype for '__fscache_deprecated_write_page' [-Wmissing-prototypes]
     194 | int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/fscache/io.c: In function '__fscache_deprecated_write_page':
>> fs/fscache/io.c:200:9: warning: variable 'len' set but not used [-Wunused-but-set-variable]
     200 |  size_t len;
         |         ^~~
>> fs/fscache/io.c:199:9: warning: variable 'start' set but not used [-Wunused-but-set-variable]
     199 |  loff_t start;
         |         ^~~~~


vim +/len +200 fs/fscache/io.c

   190	
   191	/*
   192	 * Deprecated page writing interface.
   193	 */
   194	int __fscache_deprecated_write_page(struct fscache_cookie *cookie, struct page *page)
   195	{
   196		struct netfs_cache_resources cres;
   197		struct iov_iter iter;
   198		struct bio_vec bvec[1];
 > 199		loff_t start;
 > 200		size_t len;

---
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" (35200 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ