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: <202301241934.L4ops5VY-lkp@intel.com>
Date:   Tue, 24 Jan 2023 19:55:56 +0800
From:   kernel test robot <lkp@...el.com>
To:     Babu Moger <babu.moger@....com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        x86@...nel.org, "Borislav Petkov (AMD)" <bp@...en8.de>,
        Reinette Chatre <reinette.chatre@...el.com>
Subject: [tip:x86/cache 9/13] arch/x86/kernel/cpu/resctrl/rdtgroup.c:1456:13:
 warning: variable 'h' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cache
head:   0a363fb23ee2f7beb08437ad7db86d195878d79f
commit: dc2a3e857981f859889933cf66ded117d74edff1 [9/13] x86/resctrl: Add interface to read mbm_total_bytes_config
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230124/202301241934.L4ops5VY-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=dc2a3e857981f859889933cf66ded117d74edff1
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip x86/cache
        git checkout dc2a3e857981f859889933cf66ded117d74edff1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/resctrl/

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

   arch/x86/kernel/cpu/resctrl/rdtgroup.c: In function 'mon_event_config_read':
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c:1456:13: warning: variable 'h' set but not used [-Wunused-but-set-variable]
    1456 |         u32 h;
         |             ^


vim +/h +1456 arch/x86/kernel/cpu/resctrl/rdtgroup.c

  1451	
  1452	static void mon_event_config_read(void *info)
  1453	{
  1454		struct mon_config_info *mon_info = info;
  1455		unsigned int index;
> 1456		u32 h;
  1457	
  1458		index = mon_event_config_index_get(mon_info->evtid);
  1459		if (index == INVALID_CONFIG_INDEX) {
  1460			pr_warn_once("Invalid event id %d\n", mon_info->evtid);
  1461			return;
  1462		}
  1463		rdmsr(MSR_IA32_EVT_CFG_BASE + index, mon_info->mon_config, h);
  1464	
  1465		/* Report only the valid event configuration bits */
  1466		mon_info->mon_config &= MAX_EVT_CONFIG_BITS;
  1467	}
  1468	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ