public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [thermal:thermal/cooling-device-with-id 24/25] include/linux/thermal.h:242:1: warning: no previous prototype for function 'devm_thermal_of_cooling_device_register'
@ 2026-04-14  8:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-14  8:56 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/cooling-device-with-id
head:   4fea531ae8a1095b1fc1122441fc173a33b93005
commit: 1da9dad287e0abae276c2f8cacd7ad105b78293b [24/25] thermal/of: Pass the of_index and add a function to register with an index
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260414/202604141053.csPgzNGF-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260414/202604141053.csPgzNGF-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604141053.csPgzNGF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/thermal/thermal_core.c:18:
>> include/linux/thermal.h:242:1: warning: no previous prototype for function 'devm_thermal_of_cooling_device_register' [-Wmissing-prototypes]
     242 | devm_thermal_of_cooling_device_register(struct device *dev, int of_index,
         | ^
   include/linux/thermal.h:241:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     241 | struct thermal_cooling_device *
         | ^
         | static 
   drivers/thermal/thermal_core.c:1200:10: warning: variable 'tcd' is uninitialized when used here [-Wuninitialized]
    1200 |                 return tcd;
         |                        ^~~
   drivers/thermal/thermal_core.c:1190:43: note: initialize the variable 'tcd' to silence this warning
    1190 |         struct thermal_cooling_device **ptr, *tcd;
         |                                                  ^
         |                                                   = NULL
   2 warnings generated.
--
   In file included from drivers/thermal/thermal_sysfs.c:23:
   In file included from drivers/thermal/thermal_core.h:14:
>> include/linux/thermal.h:242:1: warning: no previous prototype for function 'devm_thermal_of_cooling_device_register' [-Wmissing-prototypes]
     242 | devm_thermal_of_cooling_device_register(struct device *dev, int of_index,
         | ^
   include/linux/thermal.h:241:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     241 | struct thermal_cooling_device *
         | ^
         | static 
   1 warning generated.


vim +/devm_thermal_of_cooling_device_register +242 include/linux/thermal.h

   240	
   241	struct thermal_cooling_device *
 > 242	devm_thermal_of_cooling_device_register(struct device *dev, int of_index,
   243						const char *type, void *devdata,
   244						const struct thermal_cooling_device_ops *ops)
   245	{
   246		return ERR_PTR(-ENODEV);
   247	}
   248	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-14  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14  8:56 [thermal:thermal/cooling-device-with-id 24/25] include/linux/thermal.h:242:1: warning: no previous prototype for function 'devm_thermal_of_cooling_device_register' 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