Thread (24 messages) 24 messages, 5 authors, 2020-06-30

Re: [PATCH v4 02/10] dmaengine: Actions: Add support for S700 DMA engine

From: Amit Tomer <hidden>
Date: 2020-06-30 09:48:25
Also in: dmaengine, lkml

Hi Vinod,

On Mon, Jun 29, 2020 at 3:22 PM Vinod Koul [off-list ref] wrote:
If you use of_device_get_match_data() you will not fall into this :)
But again, of_device_get_match_data() returns void *, and we need
"uintptr_t" in order to type cast it properly (at-least without
warning).

Also, while looking around found the similar warning for other file
where it uses " of_device_get_match_data()"
drivers/pci/controller/pcie-iproc-platform.c:56:15: warning: cast to
smaller integer type 'enum iproc_pcie_type' from 'const void *'
[-Wvoid-pointer-to-enum-cast]
        pcie->type = (enum iproc_pcie_type) of_device_get_match_data(dev);

Thanks
-Amit

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help