On Sun, Nov 06, 2022 at 05:35:24AM +0800, kernel test robot wrote: > >> drivers/spi/spi-wpcm-fiu.c:424:24: error: initialization of 'ssize_t (*)(struct spi_mem_dirmap_desc *, u64, size_t, void *)' {aka 'long int (*)(struct spi_mem_dirmap_desc *, long long unsigned int, long unsigned int, void *)'} from incompatible pointer type 'int (*)(struct spi_mem_dirmap_desc *, u64, size_t, void *)' {aka 'int (*)(struct spi_mem_dirmap_desc *, long long unsigned int, long unsigned int, void *)'} [-Werror=incompatible-pointer-types] > 424 | .dirmap_read = wpcm_fiu_direct_read, > | ^~~~~~~~~~~~~~~~~~~~ > drivers/spi/spi-wpcm-fiu.c:424:24: note: (near initialization for 'wpcm_fiu_mem_ops.dirmap_read') > cc1: some warnings being treated as errors Indeed. I'll fix it.
Attachment:
signature.asc
Description: PGP signature