[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250116132010.4948547d@canb.auug.org.au>
Date: Thu, 16 Jan 2025 13:20:10 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Miquel Raynal <miquel.raynal@...tlin.com>, Boris Brezillon
<boris.brezillon@...labora.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Linux Next
Mailing List <linux-next@...r.kernel.org>
Subject: linux-next: build failure after merge of the nand tree
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.
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists