Re: [PATCH v5 3/3] iio:proximity:hx9023s: Add TYHX HX9023S sensor driver

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

 



Hi Yasin,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jic23-iio/togreg]
[also build test WARNING on robh/for-next linus/master v6.10-rc4 next-20240613]
[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/Yasin-Lee/dt-bindings-iio-proximity-Add-hx9023s-binding/20240616-154122
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link:    https://lore.kernel.org/r/SN7PR12MB8101D4BC788B5954608D677DA4CC2%40SN7PR12MB8101.namprd12.prod.outlook.com
patch subject: [PATCH v5 3/3] iio:proximity:hx9023s: Add TYHX HX9023S sensor driver
config: arm64-randconfig-r132-20240617 (https://download.01.org/0day-ci/archive/20240617/202406171946.qe83Tde0-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240617/202406171946.qe83Tde0-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/202406171946.qe83Tde0-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/iio/proximity/hx9023s.c:955:44: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 @@     got int diff @@
   drivers/iio/proximity/hx9023s.c:955:44: sparse:     expected restricted __be16
   drivers/iio/proximity/hx9023s.c:955:44: sparse:     got int diff

vim +955 drivers/iio/proximity/hx9023s.c

   931	
   932	static irqreturn_t hx9023s_trigger_handler(int irq, void *private)
   933	{
   934		struct iio_poll_func *pf = private;
   935		struct iio_dev *indio_dev = pf->indio_dev;
   936		struct hx9023s_data *data = iio_priv(indio_dev);
   937		struct device *dev = regmap_get_device(data->regmap);
   938		int ret;
   939		unsigned int bit, i = 0;
   940	
   941		guard(mutex)(&data->mutex);
   942		ret = hx9023s_sample(data);
   943		if (ret) {
   944			dev_warn(dev, "sampling failed\n");
   945			goto out;
   946		}
   947	
   948		ret = hx9023s_get_prox_state(data);
   949		if (ret) {
   950			dev_warn(dev, "get prox failed\n");
   951			goto out;
   952		}
   953	
   954		for_each_set_bit(bit, indio_dev->active_scan_mask, indio_dev->masklength)
 > 955			data->buffer.channels[i++] = data->ch_data[indio_dev->channels[bit].channel].diff;
   956	
   957		iio_push_to_buffers_with_timestamp(indio_dev, &data->buffer, pf->timestamp);
   958	
   959	out:
   960		iio_trigger_notify_done(indio_dev->trig);
   961	
   962		return IRQ_HANDLED;
   963	}
   964	

-- 
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