Skip to contentSkip to conversation

linux-next: build failure after merge of the fpga tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Apr 12, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the fpga tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/fpga/ice40-spi.c:201:35: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration]
201 | .of_match_table = of_match_ptr(ice40_fpga_of_match),

      |                                   ^~~~~~~~~~~~

drivers/fpga/ice40-spi.c:201:35: error: initialization of 'const struct of_device_id *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] drivers/fpga/ice40-spi.c:201:35: note: (near initialization for 'ice40_fpga_driver.driver.of_match_table') drivers/fpga/ice40-spi.c:201:35: error: initializer element is not constant
drivers/fpga/ice40-spi.c:201:35: note: (near initialization for 'ice40_fpga_driver.driver.of_match_table')
cc1: all warnings being treated as errors

Caused by commit

5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h")

I have used the fpga tree from next-20240411 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi all,

After merging the fpga tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/fpga/ice40-spi.c:201:35: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration]
201 | .of_match_table = of_match_ptr(ice40_fpga_of_match),

      |                                   ^~~~~~~~~~~~

drivers/fpga/ice40-spi.c:201:35: error: initialization of 'const struct of_device_id *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] drivers/fpga/ice40-spi.c:201:35: note: (near initialization for 'ice40_fpga_driver.driver.of_match_table') drivers/fpga/ice40-spi.c:201:35: error: initializer element is not constant
drivers/fpga/ice40-spi.c:201:35: note: (near initialization for 'ice40_fpga_driver.driver.of_match_table')
cc1: all warnings being treated as errors

Quoted 5 lines

Caused by commit

5d04660b29fb ("fpga: ice40-spi: Remove unused of_gpio.h")

I have used the fpga tree from next-20240411 for today.

Okay, thanks for the report. I'll send a fix soon.

Signature · 2 lines
With Best Regards,
Andy Shevchenko