[arm-platforms:hack/arch_timer_mmio 4/5] drivers/clocksource/arm_arch_timer.c:1083:34: warning: 'arch_timer_of_match' defined but not used

kernel test robot lkp at intel.com
Wed Aug 6 23:29:00 PDT 2025


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/arch_timer_mmio
head:   4b341bbc18d791b6c5a6bc373d303c4d3b35434a
commit: d094e2d0772b8f22c47c9d3e7ab908c82ade83bf [4/5] clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20250807/202508071417.nnMhOekL-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250807/202508071417.nnMhOekL-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508071417.nnMhOekL-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/clocksource/arm_arch_timer.c:1083:34: warning: 'arch_timer_of_match' defined but not used [-Wunused-const-variable=]
    1083 | static const struct of_device_id arch_timer_of_match[] __initconst = {
         |                                  ^~~~~~~~~~~~~~~~~~~


vim +/arch_timer_of_match +1083 drivers/clocksource/arm_arch_timer.c

8a4da6e36c582f Mark Rutland 2012-11-12  1082  
220069945b298d Stephen Boyd 2013-07-18 @1083  static const struct of_device_id arch_timer_of_match[] __initconst = {
220069945b298d Stephen Boyd 2013-07-18  1084  	{ .compatible   = "arm,armv7-timer",    },
220069945b298d Stephen Boyd 2013-07-18  1085  	{ .compatible   = "arm,armv8-timer",    },
220069945b298d Stephen Boyd 2013-07-18  1086  	{},
220069945b298d Stephen Boyd 2013-07-18  1087  };
220069945b298d Stephen Boyd 2013-07-18  1088  

:::::: The code at line 1083 was first introduced by commit
:::::: 220069945b298d3998c6598b081c466dca259929 clocksource: arch_timer: Add support for memory mapped timers

:::::: TO: Stephen Boyd <sboyd at codeaurora.org>
:::::: CC: Daniel Lezcano <daniel.lezcano at linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list