tree: https://github.com/stffrdhrn/linux.git litex-gpio-fix head: 6f903ad53b35652c15f91265053f437a6b6f17f0 commit: 85b04bca0da9f332aff3820373b7169644d7332b [15/26] LiteX: driver for SPI Flash (mtd) device config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/stffrdhrn/linux/commit/85b04bca0da9f332aff3820373b7169644d7332b git remote add stffrdhrn https://github.com/stffrdhrn/linux.git git fetch --no-tags stffrdhrn litex-gpio-fix git checkout 85b04bca0da9f332aff3820373b7169644d7332b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/mtd/spi-nor/litex-spiflash.c: In function 'cs': drivers/mtd/spi-nor/litex-spiflash.c:71:20: error: implicit declaration of function 'litex_get_reg'; did you mean '_litex_get_reg'? [-Werror=implicit-function-declaration] 71 | u8 curr_val = (u8)litex_get_reg(spi->base + SPIFLASH_BITBANG_OFFSET, SPIFLASH_BITBANG_SIZE); | ^~~~~~~~~~~~~ | _litex_get_reg drivers/mtd/spi-nor/litex-spiflash.c:75:2: error: implicit declaration of function 'litex_set_reg'; did you mean '_litex_set_reg'? [-Werror=implicit-function-declaration] 75 | litex_set_reg(spi->base + SPIFLASH_BITBANG_OFFSET, SPIFLASH_BITBANG_SIZE, set_val); | ^~~~~~~~~~~~~ | _litex_set_reg drivers/mtd/spi-nor/litex-spiflash.c: At top level: >> drivers/mtd/spi-nor/litex-spiflash.c:305:15: error: initialization of 'int (*)(struct spi_nor *, u8, const u8 *, size_t)' {aka 'int (*)(struct spi_nor *, unsigned char, const unsigned char *, long unsigned int)'} from incompatible pointer type 'ssize_t (*)(struct spi_nor *, u8, const u8 *, size_t)' {aka 'long int (*)(struct spi_nor *, unsigned char, const unsigned char *, long unsigned int)'} [-Werror=incompatible-pointer-types] 305 | .write_reg = spi_flash_nor_write_reg, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mtd/spi-nor/litex-spiflash.c:305:15: note: (near initialization for 'litex_spi_controller_ops.write_reg') cc1: some warnings being treated as errors vim +305 drivers/mtd/spi-nor/litex-spiflash.c 300 301 static const struct spi_nor_controller_ops litex_spi_controller_ops = { 302 .read = spi_flash_nor_read, 303 .write = spi_flash_nor_write, 304 .read_reg = spi_flash_nor_read_reg, > 305 .write_reg = spi_flash_nor_write_reg, 306 .erase = spi_flash_nor_erase, 307 }; 308 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org