drivers/iio/health/max86150.c:304: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 *)'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Md-Shofiqul-Islam/dt-bindings-iio-health-add-maxim-max86150/20260812-204159, commit: 7d9142d14851b3e733c74294fe4ed3b8c0fe2714"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: Md Shofiqul Islam <[email protected]>
CC: 0day robot <[email protected]>

tree:   https://github.com/intel-lab-lkp/linux/commits/Md-Shofiqul-Islam/dt-bindings-iio-health-add-maxim-max86150/20260812-204159
head:   00cabb4834486f0cc65da13ea376d37ce0b55283
commit: 7d9142d14851b3e733c74294fe4ed3b8c0fe2714 iio: health: add MAX86150 ECG and PPG biosensor driver
date:   2 days ago
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: sparc64-randconfig-r113-20260813 (https://download.01.org/0day-ci/archive/20260814/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/[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/r/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/iio/health/max86150.c:304: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]
     304 |         .validate_trigger = iio_trigger_validate_own_device,
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +304 drivers/iio/health/max86150.c

7d9142d14851b3 Md Shofiqul Islam 2026-06-23  301  
7d9142d14851b3 Md Shofiqul Islam 2026-06-23  302  static const struct iio_info max86150_iio_info = {
7d9142d14851b3 Md Shofiqul Islam 2026-06-23  303  	.read_raw         = max86150_read_raw,
7d9142d14851b3 Md Shofiqul Islam 2026-06-23 @304  	.validate_trigger = iio_trigger_validate_own_device,
7d9142d14851b3 Md Shofiqul Islam 2026-06-23  305  };
7d9142d14851b3 Md Shofiqul Islam 2026-06-23  306  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.