lkml.org 
[lkml]   [2022]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/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@intel.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@fivetechno.de>
:::::: CC: Mark Brown <broonie@kernel.org>

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

\
 
 \ /
  Last update: 2022-05-11 05:33    [W:0.920 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site