在 2021/3/30 20:15, Fabio Estevam 写道:
On Tue, Mar 30, 2021 at 9:12 AM tiantao (H) <tiantao6@xxxxxxxxxx> wrote:
From what I have tested, the results are ok. I will send v2 to fix.
make modules M=drivers/spi/
CC [M] drivers/spi//spi-davinci.o
drivers/spi//spi-davinci.c: In function ‘spi_davinci_get_pdata’:
drivers/spi//spi-davinci.c:826:11: warning: assignment discards ‘const’
qualifier from pointer target type [-Wdiscarded-qualifiers]
826 | spi_data = of_device_get_match_data(&pdev->dev);
Yes, I added the const as you suggested and there is no more warning
This warning does not appear if you apply the patch I suggested.
.