drivers/regulator/dummy.c:59:24: sparse: sparse: symbol 'dummy_regulator_driver' was not declared. Should it be static?
From: kernel test robot
Date: Thu Dec 11 2025 - 23:03:22 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d358e5254674b70f34c847715ca509e46eb81e6f
commit: dcd2a9a5550ef556c8fc11601a0f729fb71ead5d regulator: dummy: convert to use the faux device interface
date: 9 months ago
config: x86_64-randconfig-121-20251212 (https://download.01.org/0day-ci/archive/20251212/202512121137.A83PsV3j-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512121137.A83PsV3j-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512121137.A83PsV3j-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> drivers/regulator/dummy.c:59:24: sparse: sparse: symbol 'dummy_regulator_driver' was not declared. Should it be static?
vim +/dummy_regulator_driver +59 drivers/regulator/dummy.c
58
> 59 struct faux_device_ops dummy_regulator_driver = {
60 .probe = dummy_regulator_probe,
61 };
62
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki