Re: [PATCH v2 2/2] thermal: qcom: tsens: widen temperature limits to match hardware range
From: kernel test robot
Date: Thu May 14 2026 - 13:13:34 EST
Hi Priyansh,
kernel test robot noticed the following build warnings:
[auto build test WARNING on rafael-pm/thermal]
[also build test WARNING on linus/master v7.1-rc3 next-20260508]
[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/Priyansh-Jain/thermal-qcom-tsens-atomic-temperature-read-with-hardware-guided-retries/20260514-191243
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal
patch link: https://lore.kernel.org/r/20260508100700.772985-3-priyansh.jain%40oss.qualcomm.com
patch subject: [PATCH v2 2/2] thermal: qcom: tsens: widen temperature limits to match hardware range
config: sparc-randconfig-r072-20260514 (https://download.01.org/0day-ci/archive/20260515/202605150118.EgOsiHWm-lkp@xxxxxxxxx/config)
compiler: sparc-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9185-gbcc58b9c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605150118.EgOsiHWm-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/202605150118.EgOsiHWm-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
drivers/thermal/qcom/tsens.c: In function 'get_temp_tsens_valid':
>> drivers/thermal/qcom/tsens.c:815:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
815 | if (!ret)
| ^~
drivers/thermal/qcom/tsens.c:818:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
818 | return ret;
| ^~~~~~
vim +/if +815 drivers/thermal/qcom/tsens.c
806
807 int get_temp_tsens_valid(const struct tsens_sensor *s, int *temp)
808 {
809 int ret;
810 int hw_id = s->hw_id;
811 u32 temp_idx = LAST_TEMP_0 + hw_id;
812
813 ret = tsens_read_temp(s, temp_idx, temp);
814
> 815 if (!ret)
816 *temp = tsens_hw_to_mC(s, *temp);
817
818 return ret;
819 }
820
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki