[thermal:thermal/linux-next 14/26] drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/linux-next head: 55c16e15ff9f91bc994a20124b83faf27f0e3690 commit: c3dce117333c0e2fbdb35228d4960442d2b1ef54 [14/26] thermal/drivers/qcom: Add support for Qualcomm MBG thermal monitoring config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260808/[email protected]/config) compiler: powerpc64-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/thermal/qcom/qcom-spmi-mbg-tm.c: In function 'mbg_tm_isr': >> drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration] 184 | if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR) | ^~~~~~~~~ vim +/FIELD_GET +184 drivers/thermal/qcom/qcom-spmi-mbg-tm.c 174 175 static irqreturn_t mbg_tm_isr(int irq, void *data) 176 { 177 struct mbg_tm_chip *chip = data; 178 int ret, val; 179 180 scoped_guard(mutex, &chip->lock) { 181 ret = regmap_read(chip->map, chip->base + MBG_TEMP_MON2_FAULT_STATUS, &val); 182 if (ret < 0) 183 return IRQ_HANDLED; > 184 if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR) 185 chip->last_thres_crossed = true; 186 } 187 188 if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR) { 189 dev_dbg(chip->dev, "Notifying Thermal, fault status=%d\n", val); 190 thermal_zone_device_update(chip->tz_dev, THERMAL_TRIP_VIOLATED); 191 } else { 192 dev_dbg(chip->dev, "Lvl1 upper threshold not violated, ignoring interrupt\n"); 193 } 194 195 return IRQ_HANDLED; 196 } 197 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki