diff options
author | Anshul Dalal <anshuld@ti.com> | 2025-09-03 17:22:05 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-09-11 10:03:02 -0600 |
commit | e9e55fefb1ec3e1d2525ef69655914c17e913c4c (patch) | |
tree | 7c64628b48acc63038ed62c906d8564692023b65 /drivers/gpio/stm32_gpio_priv.h | |
parent | 93c3404de9b2320bfd07cd3ce4ab0660f0d39523 (diff) |
dma: ti: k3-udma: fix dma_addr_t typecasts
dma_addr_t is used to store any valid DMA address which might not
necessarily be the same size as host architecture's word size. Though
various typecasts in k3's dma and usb driver expect dma_addr_t to be the
same size as the word size.
This leads the compiler to throw a "cast from pointer to integer of
different size" warning when the condition is not met, for example when
enabling CONFIG_DMA_ADDR_T_64BIT for the R5 core.
Therefore this patch fixes the typecasts by using 'uintptr_t' as an
intermediary type which is guaranteed to be the same size as void* on
the host architecture. Thus, eliminating the compiler warning.
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Diffstat (limited to 'drivers/gpio/stm32_gpio_priv.h')
0 files changed, 0 insertions, 0 deletions