Re: [PATCH] spi: davinci: Use of_device_get_match_data() helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




在 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.
.





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux