Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: dummy, make dummy_regulator_driver static

When converting to faux_device the dummy_regulator_driver was
made non-static however it isn't exported or defined anywhere
outside the file it is in. Make it static to avoid the following
sparse warning:

drivers/regulator/dummy.c:59:24: warning: symbol 'dummy_regulator_driver' was not declared. Should it be static?

Fixes: dcd2a9a5550ef556c8 ("regulator: dummy: convert to use the faux device interface")
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Link: https://patch.msgid.link/20260112154909.601987-1-ben.dooks@codethink.co.uk
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ben Dooks and committed by
Mark Brown
09dc08b3 6eb6b62f

+1 -1
+1 -1
drivers/regulator/dummy.c
··· 56 56 return 0; 57 57 } 58 58 59 - struct faux_device_ops dummy_regulator_driver = { 59 + static struct faux_device_ops dummy_regulator_driver = { 60 60 .probe = dummy_regulator_probe, 61 61 }; 62 62