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:   Sat, 2 Oct 2021 06:56:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mel Gorman <mgorman@...e.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mel:mm-reclaimcongest-v3r2 1/8] mm/vmscan.c:1015:14: error:
 variable 'ret' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-reclaimcongest-v3r2
head:   569ddfc76b8072398fe4021d3a85538396351872
commit: e4aac9cc07de215558db298f6a55a9a7236273c5 [1/8] mm/vmscan: Throttle reclaim until some writeback completes if congested
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/commit/?id=e4aac9cc07de215558db298f6a55a9a7236273c5
        git remote add mel https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git
        git fetch --no-tags mel mm-reclaimcongest-v3r2
        git checkout e4aac9cc07de215558db298f6a55a9a7236273c5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390 

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

All errors (new ones prefixed by >>):

   mm/vmscan.c: In function 'reclaim_throttle':
>> mm/vmscan.c:1015:14: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
    1015 |         long ret;
         |              ^~~
   mm/vmscan.c: In function 'demote_page_list':
   mm/vmscan.c:1382:13: error: variable 'err' set but not used [-Werror=unused-but-set-variable]
    1382 |         int err;
         |             ^~~
   cc1: all warnings being treated as errors


vim +/ret +1015 mm/vmscan.c

  1008	
  1009	static void
  1010	reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason,
  1011								long timeout)
  1012	{
  1013		wait_queue_head_t *wqh = &pgdat->reclaim_wait;
  1014		unsigned long start = jiffies;
> 1015		long ret;
  1016		DEFINE_WAIT(wait);
  1017	
  1018		if (atomic_inc_return(&pgdat->nr_reclaim_throttled) == 1) {
  1019			WRITE_ONCE(pgdat->nr_reclaim_start,
  1020				node_page_state(pgdat, NR_THROTTLED_WRITTEN));
  1021		}
  1022	
  1023		prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE);
  1024		ret = schedule_timeout(timeout);
  1025		finish_wait(wqh, &wait);
  1026		atomic_dec(&pgdat->nr_reclaim_throttled);
  1027	
  1028		trace_mm_vmscan_throttled(pgdat->node_id, jiffies_to_usecs(timeout),
  1029					jiffies_to_usecs(jiffies - start),
  1030					reason);
  1031	}
  1032	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ