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:   Wed, 11 May 2022 11:31:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Markus Reichl <m.reichl@...etechno.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>
Subject: drivers/regulator/mp8859.c:131:34: warning: 'mp8859_dt_id' defined
 but not used

Hi Markus,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   feb9c5e19e913b53cb536a7aa7c9f20107bb51ec
commit: c66f1cbad53a61f00f8b6273e737d5e560b69ec7 regulator: mp8859: add config option and build entry
date:   2 years, 4 months ago
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220511/202205111110.NZWaV5qs-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c66f1cbad53a61f00f8b6273e737d5e560b69ec7
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c66f1cbad53a61f00f8b6273e737d5e560b69ec7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/bridge/analogix/ drivers/regulator/

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/regulator/mp8859.c:131:34: warning: 'mp8859_dt_id' defined but not used [-Wunused-const-variable=]
     131 | static const struct of_device_id mp8859_dt_id[] = {
         |                                  ^~~~~~~~~~~~


vim +/mp8859_dt_id +131 drivers/regulator/mp8859.c

4444a1c10069e2f Markus Reichl 2020-01-06  130  
4444a1c10069e2f Markus Reichl 2020-01-06 @131  static const struct of_device_id mp8859_dt_id[] = {
4444a1c10069e2f Markus Reichl 2020-01-06  132  	{.compatible =  "mps,mp8859"},
4444a1c10069e2f Markus Reichl 2020-01-06  133  	{},
4444a1c10069e2f Markus Reichl 2020-01-06  134  };
4444a1c10069e2f Markus Reichl 2020-01-06  135  MODULE_DEVICE_TABLE(of, mp8859_dt_id);
4444a1c10069e2f Markus Reichl 2020-01-06  136  

:::::: The code at line 131 was first introduced by commit
:::::: 4444a1c10069e2f371fa497ba22feafafed5aada regulator: mp8859: add driver

:::::: TO: Markus Reichl <m.reichl@...etechno.de>
:::::: CC: Mark Brown <broonie@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ