STMicroelectronics / st-mems-android-linux-drivers-iio

stm mems iio drivers for Android and Linux platforms.
GNU General Public License v2.0
23 stars 1 forks source link

compilation of st_lis2dw12_buffer.c with kernel 5.15 fails #3

Closed MarkusDost closed 1 year ago

MarkusDost commented 1 year ago

I'm using the Kernel 5.15. and get the following error when I try to compile the driver for the LIS2DW12/IIS2DLPC:

st_lis2dw12_buffer.c:308:18: error: implicit declaration of function 'devm_iio_kfifo_allocate'; did you mean 'iio_kfifo_allocate'? [-Werror=implicit-function-declaration]

The function 'devm_iio_kfifo_allocate' was changed to a private function in kernel 5.13 and replaced by 'devm_iio_kfifo_buffer_setup' in header 'kfifo_buf.h'

mariotesi commented 1 year ago

4.15 or 5.15 ?

MarkusDost commented 1 year ago

Sorry my mistake. I mean 5.15

ciocca-d commented 1 year ago

commit 3925f9892341e3abd86488717e5238135a899f8c pushed out few hours ago should fix the issue you are facing.

MarkusDost commented 1 year ago

Thank you, this fix works.