Re: [PATCH v1 1/2] iio: Drop usage of iio_validate_own_trigger()

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

 



Hi Vasileios,

kernel test robot noticed the following build errors:

[auto build test ERROR on 8bea3878a1511bceadc2fbf284b00bcc5a2ef28d]

url:    https://github.com/intel-lab-lkp/linux/commits/Vasileios-Amoiridis/iio-Drop-usage-of-iio_validate_own_trigger/20240922-022124
base:   8bea3878a1511bceadc2fbf284b00bcc5a2ef28d
patch link:    https://lore.kernel.org/r/20240921181939.392517-2-vassilisamir%40gmail.com
patch subject: [PATCH v1 1/2] iio: Drop usage of iio_validate_own_trigger()
config: x86_64-buildonly-randconfig-002-20240922 (https://download.01.org/0day-ci/archive/20240922/202409221122.4BTAc5w1-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240922/202409221122.4BTAc5w1-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/202409221122.4BTAc5w1-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/iio/accel/kionix-kx022a.c:876:22: error: incompatible function pointer types initializing 'int (*)(struct iio_dev *, struct iio_trigger *)' with an expression of type 'int (struct iio_trigger *, struct iio_dev *)' [-Wincompatible-function-pointer-types]
     876 |         .validate_trigger       = iio_trigger_validate_own_device,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
--
>> drivers/iio/light/rohm-bu27008.c:1389:22: error: incompatible function pointer types initializing 'int (*)(struct iio_dev *, struct iio_trigger *)' with an expression of type 'int (struct iio_trigger *, struct iio_dev *)' [-Wincompatible-function-pointer-types]
    1389 |         .validate_trigger = iio_trigger_validate_own_device,
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +876 drivers/iio/accel/kionix-kx022a.c

   869	
   870	static const struct iio_info kx022a_info = {
   871		.read_raw = &kx022a_read_raw,
   872		.write_raw = &kx022a_write_raw,
   873		.write_raw_get_fmt = &kx022a_write_raw_get_fmt,
   874		.read_avail = &kx022a_read_avail,
   875	
 > 876		.validate_trigger	= iio_trigger_validate_own_device,
   877		.hwfifo_set_watermark	= kx022a_set_watermark,
   878		.hwfifo_flush_to_buffer	= kx022a_fifo_flush,
   879	};
   880	

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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux