Re: [PATCH] thermal: Add support for device tree thermal zones consumers

From: AngeloGioacchino Del Regno
Date: Wed Nov 15 2023 - 09:46:22 EST


Il 15/11/23 15:37, kernel test robot ha scritto:
Hi AngeloGioacchino,

kernel test robot noticed the following build errors:

[auto build test ERROR on rafael-pm/thermal]
[also build test ERROR on linus/master v6.7-rc1 next-20231115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/AngeloGioacchino-Del-Regno/thermal-Add-support-for-device-tree-thermal-zones-consumers/20231114-211656
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal
patch link: https://lore.kernel.org/r/20231114131514.89031-1-angelogioacchino.delregno%40collabora.com
patch subject: [PATCH] thermal: Add support for device tree thermal zones consumers
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20231115/202311152230.nzJVHaeG-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231115/202311152230.nzJVHaeG-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/202311152230.nzJVHaeG-lkp@xxxxxxxxx/

..snip..



vim +282 include/linux/thermal.h

280

That's right, I forgot to add "static inline" :-)

Fixing and sending a v2.

281 struct thermal_zone_device *thermal_of_get_zone_by_index(struct device *dev, int index)
> 282 {
283 return ERR_PTR(-EOPNOTSUPP);
284 }
285
286 struct thermal_zone_device *thermal_of_get_zone(struct device *dev, const char *name)
> 287 {
288 return ERR_PTR(-EOPNOTSUPP);
289 }
290 #endif
291