Re: [PATCH v2 2/2] thermal: Add support for Airoha EN7581 thermal sensor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christian,

kernel test robot noticed the following build errors:

[auto build test ERROR on rafael-pm/thermal]
[also build test ERROR on linus/master v6.12-rc3 next-20241017]
[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/Christian-Marangi/thermal-Add-support-for-Airoha-EN7581-thermal-sensor/20241017-224102
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal
patch link:    https://lore.kernel.org/r/20241017143830.1656-2-ansuelsmth%40gmail.com
patch subject: [PATCH v2 2/2] thermal: Add support for Airoha EN7581 thermal sensor
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20241018/202410181340.S74lBfUS-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241018/202410181340.S74lBfUS-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/202410181340.S74lBfUS-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/thermal/airoha_thermal.c: In function 'airoha_thermal_get_temp':
>> drivers/thermal/airoha_thermal.c:239:46: error: invalid use of undefined type 'struct thermal_zone_device'
     239 |         struct airoha_thermal_priv *priv = tz->devdata;
         |                                              ^~
   drivers/thermal/airoha_thermal.c: In function 'airoha_thermal_set_trips':
   drivers/thermal/airoha_thermal.c:268:46: error: invalid use of undefined type 'struct thermal_zone_device'
     268 |         struct airoha_thermal_priv *priv = tz->devdata;
         |                                              ^~
   drivers/thermal/airoha_thermal.c: In function 'airoha_thermal_probe':
   drivers/thermal/airoha_thermal.c:466:17: error: invalid use of undefined type 'struct thermal_zone_device'
     466 |         priv->tz->tzp->offset = priv->default_offset;
         |                 ^~
   drivers/thermal/airoha_thermal.c:467:17: error: invalid use of undefined type 'struct thermal_zone_device'
     467 |         priv->tz->tzp->slope = priv->default_slope;
         |                 ^~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GET_FREE_REGION
   Depends on [n]: SPARSEMEM [=n]
   Selected by [m]:
   - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]


vim +239 drivers/thermal/airoha_thermal.c

   236	
   237	static int airoha_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
   238	{
 > 239		struct airoha_thermal_priv *priv = tz->devdata;
   240		int min, max, avg_temp, temp_adc;
   241		int i;
   242	
   243		/* Get the starting temp */
   244		temp_adc = airoha_get_thermal_ADC(priv);
   245		min = temp_adc;
   246		max = temp_adc;
   247		avg_temp = temp_adc;
   248	
   249		/* Make 5 more measurement and average the temp ADC difference */
   250		for (i = 0; i < 5; i++) {
   251			temp_adc = airoha_get_thermal_ADC(priv);
   252			avg_temp += temp_adc;
   253			if (temp_adc > max)
   254				max = temp_adc;
   255			if (temp_adc < min)
   256				min = temp_adc;
   257		}
   258		avg_temp = avg_temp - max - min;
   259		avg_temp /= 4;
   260	
   261		*temp = RAW_TO_TEMP(priv, avg_temp);
   262		return 0;
   263	}
   264	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux