Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Apr 6, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/spi/spi-hisi-kunpeng.c: In function 'hisi_spi_transfer_one':
drivers/spi/spi-hisi-kunpeng.c:361:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551600' to '4294967280' [-Woverflow]
361 | writel(~IMR_MASK, hs->regs + HISI_SPI_IMR);
| ^

Introduced by commit

c770d8631e18 ("spi: Add HiSilicon SPI Controller Driver for Kunpeng SoCs")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

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

Quoted 9 lines

drivers/spi/spi-hisi-kunpeng.c: In function 'hisi_spi_transfer_one':
drivers/spi/spi-hisi-kunpeng.c:361:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '18446744073709551600' to '4294967280' [-Woverflow]
361 | writel(~IMR_MASK, hs->regs + HISI_SPI_IMR);
| ^

Introduced by commit

c770d8631e18 ("spi: Add HiSilicon SPI Controller Driver for Kunpeng SoCs")

I will fix this warning ASAP.

Thanks,
Jay