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:   Fri, 17 Jun 2022 21:40:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     James Morse <james.morse@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [morse:mpam/snapshot/v5.18 113/146]
 drivers/platform/mpam/mpam_devices.c:1823:34: warning: variable 'mbwu_state'
 set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.18
head:   bac90d25cbdee0fc233b9b1c47d5b6f44101a384
commit: b14b450aa8048b7f426d01386d754ab6a398fa96 [113/146] arm_mpam: Track bandwidth counter state for overflow and power management
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220617/202206172134.hLhEJMjm-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.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/morse/linux.git/commit/?id=b14b450aa8048b7f426d01386d754ab6a398fa96
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.18
        git checkout b14b450aa8048b7f426d01386d754ab6a398fa96
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/platform/mpam/

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 >>):

   drivers/platform/mpam/mpam_devices.c: In function '__destroy_component_cfg':
>> drivers/platform/mpam/mpam_devices.c:1823:34: warning: variable 'mbwu_state' set but not used [-Wunused-but-set-variable]
    1823 |         struct msmon_mbwu_state *mbwu_state;
         |                                  ^~~~~~~~~~


vim +/mbwu_state +1823 drivers/platform/mpam/mpam_devices.c

  1818	
  1819	static void __destroy_component_cfg(struct mpam_component *comp)
  1820	{
  1821		unsigned long flags;
  1822		struct mpam_msc_ris *ris;
> 1823		struct msmon_mbwu_state *mbwu_state;
  1824	
  1825		kfree(comp->cfg);
  1826		list_for_each_entry(ris, &comp->ris, comp_list) {
  1827			spin_lock(&ris->msc->lock);
  1828			spin_lock_irqsave(&ris->msc->mon_sel_lock, flags);
  1829			mbwu_state = ris->mbwu_state;
  1830			ris->mbwu_state = NULL;
  1831			spin_unlock_irqrestore(&ris->msc->mon_sel_lock, flags);
  1832			spin_unlock(&ris->msc->lock);
  1833	
  1834			kfree(ris->mbwu_state);
  1835		}
  1836	}
  1837	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ