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: <202106270133.wnfPw8az-lkp@intel.com>
Date:   Sun, 27 Jun 2021 01:14:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mario Limonciello <mario.limonciello@...l.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Hans de Goede <hdegoede@...hat.com>
Subject: drivers/platform/x86/dell/dell-smbios-smm.c:27:35: warning: unused
 variable 'dell_device_table'

Hi Mario,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b7050b242430f3170e0b57f5f55136e44cb8dc66
commit: f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28 platform/x86: Move all dell drivers to their own subdirectory
date:   5 months ago
config: x86_64-buildonly-randconfig-r002-20210626 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 557b101ce714e39438ba1d39c4c50b03e12fcb96)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

>> drivers/platform/x86/dell/dell-smbios-smm.c:27:35: warning: unused variable 'dell_device_table' [-Wunused-const-variable]
   static const struct dmi_system_id dell_device_table[] __initconst = {
                                     ^
   1 warning generated.


vim +/dell_device_table +27 drivers/platform/x86/dell/dell-smbios-smm.c

549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  26  
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01 @27  static const struct dmi_system_id dell_device_table[] __initconst = {
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  28  	{
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  29  		.ident = "Dell laptop",
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  30  		.matches = {
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  31  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  32  			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  33  		},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  34  	},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  35  	{
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  36  		.matches = {
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  37  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  38  			DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /*Laptop*/
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  39  		},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  40  	},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  41  	{
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  42  		.matches = {
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  43  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  44  			DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /*Notebook*/
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  45  		},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  46  	},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  47  	{
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  48  		.ident = "Dell Computer Corporation",
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  49  		.matches = {
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  50  			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  51  			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  52  		},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  53  	},
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  54  	{ }
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  55  };
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  56  MODULE_DEVICE_TABLE(dmi, dell_device_table);
549b4930f057658d drivers/platform/x86/dell-smbios-smm.c Mario Limonciello 2017-11-01  57  

:::::: The code at line 27 was first introduced by commit
:::::: 549b4930f057658dc50d8010e66219233119a4d8 platform/x86: dell-smbios: Introduce dispatcher for SMM calls

:::::: TO: Mario Limonciello <mario.limonciello@...l.com>
:::::: CC: Darren Hart (VMware) <dvhart@...radead.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ