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]
Message-ID: <202210091117.za2uq23p-lkp@intel.com>
Date:   Sun, 9 Oct 2022 11:08:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dan Williams <dan.j.williams@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [djbw-nvdimm:libnvdimm-pending 10/20] mm/memremap.c:593:23: warning:
 variable 'iter' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head:   911d658201acc386472f976e5fd2d48b9e45fdce
commit: 5245e01c0858444537414763acd9e8541401a187 [10/20] fsdax: Introduce pgmap_request_folios()
config: x86_64-rhel-8.3-func
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git/commit/?id=5245e01c0858444537414763acd9e8541401a187
        git remote add djbw-nvdimm https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git
        git fetch --no-tags djbw-nvdimm libnvdimm-pending
        git checkout 5245e01c0858444537414763acd9e8541401a187
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   mm/memremap.c: In function 'pgmap_release_folios':
>> mm/memremap.c:593:23: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
     593 |         struct folio *iter;
         |                       ^~~~


vim +/iter +593 mm/memremap.c

   590	
   591	void pgmap_release_folios(struct dev_pagemap *pgmap, struct folio *folio, int nr_folios)
   592	{
 > 593		struct folio *iter;
   594		int i;
   595	
   596		for (iter = folio, i = 0; i < nr_folios;
   597		     iter = folio_next(folio), i++) {
   598			if (!put_devmap_managed_page(&folio->page))
   599				folio_put(folio);
   600			if (!folio_ref_count(folio))
   601				put_dev_pagemap(pgmap);
   602		}
   603	}
   604	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (168483 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ