Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Jan 16, 2025 – Jan 17, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

In file included from drivers/mtd/nand/spi/skyhigh.c:11:
include/linux/stddef.h:8:14: error: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]

    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:61: note: in expansion of macro 'NULL'
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[4].data.nbytes')

    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:61: note: in expansion of macro 'NULL'
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^~~~
drivers/mtd/nand/spi/skyhigh.c:24:58: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^
include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:58: note: (near initialization for '(anonymous)[4].data.buf.in')
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^
include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: error: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:62: note: in expansion of macro 'NULL'
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[5].data.nbytes')

    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:62: note: in expansion of macro 'NULL'
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^~~~
drivers/mtd/nand/spi/skyhigh.c:25:59: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^
include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:59: note: (near initialization for '(anonymous)[5].data.buf.in')
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^
include/linux/mtd/spinand.h:342:48: note: in definition of macro 'SPINAND_OP_VARIANTS'
342 | .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: error: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:61: note: in expansion of macro 'NULL'
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[4].data.nbytes')

    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:61: note: in expansion of macro 'NULL'
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^~~~
drivers/mtd/nand/spi/skyhigh.c:24:58: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^
include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:24:58: note: (near initialization for '(anonymous)[4].data.buf.in')
24 | SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
| ^
include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:24:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   24 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: error: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:62: note: in expansion of macro 'NULL'
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for '(anonymous)[5].data.nbytes')

    8 | #define NULL ((void *)0)
      |              ^

include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:62: note: in expansion of macro 'NULL'
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^~~~
drivers/mtd/nand/spi/skyhigh.c:25:59: error: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^
include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

drivers/mtd/nand/spi/skyhigh.c:25:59: note: (near initialization for '(anonymous)[5].data.buf.in')
25 | SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
| ^
include/linux/mtd/spinand.h:343:55: note: in definition of macro 'SPINAND_OP_VARIANTS'
343 | .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
| ^~~~~~~~~~~
include/linux/mtd/spinand.h:66:9: note: in expansion of macro 'SPI_MEM_OP'

   66 |         SPI_MEM_OP(SPI_MEM_OP_CMD(0x03, 1),                             \
      |         ^~~~~~~~~~
include/linux/mtd/spinand.h:69:20: note: in expansion of macro 'SPI_MEM_OP_DATA_IN'
   69 |                    SPI_MEM_OP_DATA_IN(len, buf, 1),                     \
      |                    ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/spi/skyhigh.c:25:17: note: in expansion of macro 'SPINAND_PAGE_READ_FROM_CACHE_OP'
   25 |                 SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

042087247835 ("mtd: spinand: Create distinct fast and slow read from cache variants")

I have used the nand tree from next-20250115 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
author Tested-by
#1 lore raw

Hi all,

Quoted 6 lines · On Thu, 16 Jan 2025 13:20:10 +1100 Stephen Rothwell <[email protected]>…

Caused by commit

042087247835 ("mtd: spinand: Create distinct fast and slow read from cache variants")

I have used the nand tree from next-20250115 for today.

I applied the suggested patch for today (instead of using the older nand tree).

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hello Stephen,

Quoted 6 lines · Stephen Rothwell

Hi all,

Quoted 3 lines · On Thu, 16 Jan 2025 13:20:10 +1100 Stephen Rothwell <[email protected]>…

Caused by commit

Quoted 8 lines
Quoted 3 lines

042087247835 ("mtd: spinand: Create distinct fast and slow read from cache variants")

I have used the nand tree from next-20250115 for today.

I applied the suggested patch for today (instead of using the older nand tree).

Thanks a lot, your feedback is very valuable.

Miquèl