tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5677 head: 7d4d443eb4386d6dbd420fa96303dd8fbc1eefc8 commit: 7d4d443eb4386d6dbd420fa96303dd8fbc1eefc8 [6/6] ASoC: rt5677: Allow arbitrary block read/write via SPI config: mn10300-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/ma... -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 7d4d443eb4386d6dbd420fa96303dd8fbc1eefc8 # save the attached .config to linux build tree make.cross ARCH=mn10300
All warnings (new ones prefixed by >>):
sound/soc/codecs/rt5677-spi.c: In function 'rt5677_spi_read':
sound/soc/codecs/rt5677-spi.c:130:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=]
dev_err(&g_spi->dev, "Bad read align 0x%x(%zu)\n", addr, len); ^ sound/soc/codecs/rt5677-spi.c: In function 'rt5677_spi_write': sound/soc/codecs/rt5677-spi.c:184:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=] dev_err(&g_spi->dev, "Bad write align 0x%x(%zu)\n", addr, len); ^
vim +130 sound/soc/codecs/rt5677-spi.c
114 int rt5677_spi_read(u32 addr, void *rxbuf, size_t len) 115 { 116 u32 offset; 117 int status = 0; 118 struct spi_transfer t[2]; 119 struct spi_message m; 120 /* +4 bytes is for the DummyPhase following the AddressPhase */ 121 u8 header[RT5677_SPI_HEADER + 4]; 122 u8 body[RT5677_SPI_BURST_LEN]; 123 u8 spi_cmd; 124 u8 *cb = rxbuf; 125 126 if (!g_spi) 127 return -ENODEV; 128 129 if ((addr & 1) || (len & 1)) {
130 dev_err(&g_spi->dev, "Bad read align 0x%x(%zu)\n", addr, len);
131 return -EACCES; 132 } 133 134 memset(t, 0, sizeof(t)); 135 t[0].tx_buf = header; 136 t[0].len = sizeof(header); 137 t[0].speed_hz = RT5677_SPI_FREQ; 138 t[1].rx_buf = body;
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation