[tobetter:odroid-5.15.y 32/74] drivers/thermal/thermal_helpers.c:79: warning: expecting prototype for thermal_zone_get_temp(). Prototype was for CRITICAL_TEMP() instead

From: kernel test robot
Date: Wed Nov 03 2021 - 05:59:32 EST


tree: https://github.com/tobetter/linux odroid-5.15.y
head: bcf324ec70af843cc1e6a88e67a8b7f44c4739bb
commit: 80ab63aad57c0100e5277218c03ce79f4256d8c4 [32/74] ODROID-XU4: Update hack avoiding the invalid temperature by TMU broken
config: parisc-buildonly-randconfig-r003-20211103 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/tobetter/linux/commit/80ab63aad57c0100e5277218c03ce79f4256d8c4
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.15.y
git checkout 80ab63aad57c0100e5277218c03ce79f4256d8c4
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash drivers/thermal/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/thermal/thermal_helpers.c:79: warning: expecting prototype for thermal_zone_get_temp(). Prototype was for CRITICAL_TEMP() instead


vim +79 drivers/thermal/thermal_helpers.c

67
68 /**
69 * thermal_zone_get_temp() - returns the temperature of a thermal zone
70 * @tz: a valid pointer to a struct thermal_zone_device
71 * @temp: a valid pointer to where to store the resulting temperature.
72 *
73 * When a valid thermal zone reference is passed, it will fetch its
74 * temperature and fill @temp.
75 *
76 * Return: On success returns 0, an error code otherwise
77 */
78
> 79 #define CRITICAL_TEMP 120000
80 int thermal_zone_data[4] = { 0, };
81

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip