drivers/clocksource/timer-stm32-lp.c:203:34: warning: unused variable 'stm32_clkevent_lp_of_match'
From: kernel test robot
Date: Sun Aug 16 2020 - 09:45:46 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 48b41c5e2de6c52c90efa99cfa122a5da7a7f0cd clocksource: Add Low Power STM32 timers driver
date: 8 weeks ago
config: x86_64-randconfig-r034-20200816 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ab9fc8bae805c785066779e76e7846aabad5609e)
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
git checkout 48b41c5e2de6c52c90efa99cfa122a5da7a7f0cd
# 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@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/clocksource/timer-stm32-lp.c:203:34: warning: unused variable 'stm32_clkevent_lp_of_match' [-Wunused-const-variable]
static const struct of_device_id stm32_clkevent_lp_of_match[] = {
^
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48b41c5e2de6c52c90efa99cfa122a5da7a7f0cd
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 48b41c5e2de6c52c90efa99cfa122a5da7a7f0cd
vim +/stm32_clkevent_lp_of_match +203 drivers/clocksource/timer-stm32-lp.c
202
> 203 static const struct of_device_id stm32_clkevent_lp_of_match[] = {
204 { .compatible = "st,stm32-lptimer-timer", },
205 {},
206 };
207 MODULE_DEVICE_TABLE(of, stm32_clkevent_lp_of_match);
208
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip