93f0912b09
arch/arm/src/stm32h7/stm32_dma.c: * Include <inttypes.h> explicitly for format specifiers. * In functions stm32_mdma_capable(), stm32_mdma_dump(), stm32_sdma_setup(), stm32_sdma_capable(), stm32_sdma_dump(), stm32_bdma_setup(), stm32_bdma_capable(), stm32_bdma_dump(), stm32_dmamux_dump(), stm32_dmachannel(), stm32_dmafree(), and stm32_dmadump(): Where appropriate, use format specifiers from <inttypes.h> in calls to dmainfo(). This removes numerous compiler warnings like: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] * In function stm32_mdma_disable(): Remove wrong redefinition of 'dmachan' parameter as a local variable. This fixes the following compiler error that occurs when building with CONFIG_STM32H7_MDMA: chip/stm32_dma.c:930:17: error: 'dmachan' redeclared as different kind of symbol DMA_CHANNEL dmachan = (DMA_CHANNEL)handle; ^~~~~~~ chip/stm32_dma.c:928:44: note: previous definition of 'dmachan' was here static void stm32_mdma_disable(DMA_CHANNEL dmachan) ^~~~~~~ chip/stm32_dma.c:930:43: error: 'handle' undeclared (first use in this function); did you mean 'random'? DMA_CHANNEL dmachan = (DMA_CHANNEL)handle; ^~~~~~ random |
||
---|---|---|
.. | ||
include | ||
src | ||
Kconfig |