linux-next: build warning after merge of the spi tree

Stephen Rothwell
2018-08-03T04:38:14Z

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

Hi Mark,

After merging the spi tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

drivers/spi/spi-mem.c: In function 'spi_mem_probe':
drivers/spi/spi-mem.c:375:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
mem->name = ctlr->mem_ops->get_name(mem);
^
drivers/spi/spi-mem.c:377:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
mem->name = dev_name(&spi->dev);
^

Introduced by commit

5d27a9c8ea9e ("spi: spi-mem: Extend the SPI mem interface to set a custom memory name")

"const" is good :-)