linux-next: build warning after merge of the spi tree
From: Stephen Rothwell
Date: Fri Aug 03 2018 - 00:43:02 EST
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 :-)
--
Cheers,
Stephen Rothwell
Attachment:
pgpTBKDMZS_aA.pgp
Description: OpenPGP digital signature