* drivers/regulator/max20086-regulator.c:288:34: warning: unused variable 'max20086_dt_ids'
@ 2022-01-12 15:18 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-12 15:18 UTC (permalink / raw)
To: Watson Chow; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Laurent Pinchart
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: daadb3bd0e8d3e317e36bc2c1542e86c528665e5
commit: bfff546aae50ae68ed395bf0e0848188d27b0ba3 regulator: Add MAX20086-MAX20089 driver
date: 5 days ago
config: mips-buildonly-randconfig-r004-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122312.qsMgLJU3-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfff546aae50ae68ed395bf0e0848188d27b0ba3
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout bfff546aae50ae68ed395bf0e0848188d27b0ba3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash 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/max20086-regulator.c:288:34: warning: unused variable 'max20086_dt_ids' [-Wunused-const-variable]
static const struct of_device_id max20086_dt_ids[] = {
^
1 warning generated.
vim +/max20086_dt_ids +288 drivers/regulator/max20086-regulator.c
287
> 288 static const struct of_device_id max20086_dt_ids[] = {
289 {
290 .compatible = "maxim,max20086",
291 .data = &(const struct max20086_chip_info) {
292 .id = MAX20086_DEVICE_ID_MAX20086,
293 .num_outputs = 4,
294 }
295 }, {
296 .compatible = "maxim,max20087",
297 .data = &(const struct max20086_chip_info) {
298 .id = MAX20086_DEVICE_ID_MAX20087,
299 .num_outputs = 4,
300 }
301 }, {
302 .compatible = "maxim,max20088",
303 .data = &(const struct max20086_chip_info) {
304 .id = MAX20086_DEVICE_ID_MAX20088,
305 .num_outputs = 2,
306 }
307 }, {
308 .compatible = "maxim,max20089",
309 .data = &(const struct max20086_chip_info) {
310 .id = MAX20086_DEVICE_ID_MAX20089,
311 .num_outputs = 2,
312 }
313 },
314 { /* Sentinel */ },
315 };
316
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/regulator/max20086-regulator.c:288:34: warning: unused variable 'max20086_dt_ids'
@ 2022-04-26 20:37 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-04-26 20:37 UTC (permalink / raw)
To: Watson Chow; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown, Laurent Pinchart
Hi Watson,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d615b5416f8a1afeb82d13b238f8152c572d59c0
commit: bfff546aae50ae68ed395bf0e0848188d27b0ba3 regulator: Add MAX20086-MAX20089 driver
date: 4 months ago
config: arm-randconfig-c002-20220425 (https://download.01.org/0day-ci/archive/20220427/202204270439.GkdfXdmL-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfff546aae50ae68ed395bf0e0848188d27b0ba3
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout bfff546aae50ae68ed395bf0e0848188d27b0ba3
# save the config file
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
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/max20086-regulator.c:288:34: warning: unused variable 'max20086_dt_ids' [-Wunused-const-variable]
static const struct of_device_id max20086_dt_ids[] = {
^
1 warning generated.
vim +/max20086_dt_ids +288 drivers/regulator/max20086-regulator.c
287
> 288 static const struct of_device_id max20086_dt_ids[] = {
289 {
290 .compatible = "maxim,max20086",
291 .data = &(const struct max20086_chip_info) {
292 .id = MAX20086_DEVICE_ID_MAX20086,
293 .num_outputs = 4,
294 }
295 }, {
296 .compatible = "maxim,max20087",
297 .data = &(const struct max20086_chip_info) {
298 .id = MAX20086_DEVICE_ID_MAX20087,
299 .num_outputs = 4,
300 }
301 }, {
302 .compatible = "maxim,max20088",
303 .data = &(const struct max20086_chip_info) {
304 .id = MAX20086_DEVICE_ID_MAX20088,
305 .num_outputs = 2,
306 }
307 }, {
308 .compatible = "maxim,max20089",
309 .data = &(const struct max20086_chip_info) {
310 .id = MAX20086_DEVICE_ID_MAX20089,
311 .num_outputs = 2,
312 }
313 },
314 { /* Sentinel */ },
315 };
316
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-26 20:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-26 20:37 drivers/regulator/max20086-regulator.c:288:34: warning: unused variable 'max20086_dt_ids' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-01-12 15:18 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox