tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1bd8b75fe6adeaa89d02968bdd811ffe708cf839 commit: db6a8066734797d4dd6f9194e834a0178d1bd4f5 [9684/10852] thermal/core: Add a generic thermal_zone_get_trip() function config: x86_64-rhel-8.3-func compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=db6a8066734797d4dd6f9194e834a0178d1bd4f5 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout db6a8066734797d4dd6f9194e834a0178d1bd4f5 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the linux-next/master HEAD 1bd8b75fe6adeaa89d02968bdd811ffe708cf839 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/thermal/thermal_sysfs.c: In function 'trip_point_type_show': >> drivers/thermal/thermal_sysfs.c:92:18: error: implicit declaration of function 'thermal_zone_get_trip'; did you mean 'thermal_zone_set_trips'? [-Werror=implicit-function-declaration] 92 | result = thermal_zone_get_trip(tz, trip_id, &trip); | ^~~~~~~~~~~~~~~~~~~~~ | thermal_zone_set_trips cc1: some warnings being treated as errors vim +92 drivers/thermal/thermal_sysfs.c 80 81 static ssize_t 82 trip_point_type_show(struct device *dev, struct device_attribute *attr, 83 char *buf) 84 { 85 struct thermal_zone_device *tz = to_thermal_zone(dev); 86 struct thermal_trip trip; 87 int trip_id, result; 88 89 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip_id) != 1) 90 return -EINVAL; 91 > 92 result = thermal_zone_get_trip(tz, trip_id, &trip); 93 if (result) 94 return result; 95 96 switch (trip.type) { 97 case THERMAL_TRIP_CRITICAL: 98 return sprintf(buf, "critical\n"); 99 case THERMAL_TRIP_HOT: 100 return sprintf(buf, "hot\n"); 101 case THERMAL_TRIP_PASSIVE: 102 return sprintf(buf, "passive\n"); 103 case THERMAL_TRIP_ACTIVE: 104 return sprintf(buf, "active\n"); 105 default: 106 return sprintf(buf, "unknown\n"); 107 } 108 } 109 -- 0-DAY CI Kernel Test Service https://01.org/lkp