umber-kernel/drivers/dma
Clément Le Goffic a6e099cda2 dmaengine: stm32-mdma: initialize m2m_hw_period and ccr to fix warnings
[ Upstream commit aaf3bc0265744adbc2d364964ef409cf118d193d ]

m2m_hw_period is initialized only when chan_config->m2m_hw is true. This
triggers a warning:
‘m2m_hw_period’ may be used uninitialized [-Wmaybe-uninitialized]
Although m2m_hw_period is only used when chan_config->m2m_hw is true and
ignored otherwise, initialize it unconditionally to 0.

ccr is initialized by stm32_mdma_set_xfer_param() when the sg list is not
empty. This triggers a warning:
‘ccr’ may be used uninitialized [-Wmaybe-uninitialized]
Indeed, it could be used uninitialized if the sg list is empty. Initialize
it to 0.

Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Reviewed-by: Clément Le Goffic <legoffic.clement@gmail.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://patch.msgid.link/20251217-mdma_warnings_fix-v2-1-340200e0bb55@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:33 -05:00
..
amd dmaengine updates for v6.16 2025-06-05 08:49:30 -07:00
bestcomm
dw dmaengine: dw: dmamux: fix OF node leak on route allocation failure 2026-01-23 11:21:33 +01:00
dw-axi-dmac
dw-edma dmaengine: dw-edma: Set status for callback_result 2025-09-02 12:44:45 +05:30
fsl-dpaa2-qdma dmaengine: fsl-dpaa2-qdma: Drop unused mc_enc() 2025-06-26 15:29:44 -07:00
hsu
idxd dmaengine: idxd: fix device leaks on compat bind and unbind 2026-01-23 11:21:33 +01:00
ioat treewide: Drop pci_save_state() after pci_restore_state() 2026-02-11 13:41:45 +01:00
lgm
mediatek dmaengine: mediatek: uart-apdma: Fix above 4G addressing TX/RX 2026-02-26 14:59:32 -08:00
ppc4xx dmaengine: ppc4xx: Remove space before newline 2025-08-20 23:04:50 +05:30
qcom dmaengine: qcom: gpi: Fix memory leak in gpi_peripheral_config() 2026-01-23 11:21:34 +01:00
sf-pdma
sh dmaengine: sh: rz-dmac: Fix rz_dmac_terminate_all() 2026-01-23 11:21:34 +01:00
stm32 dmaengine: stm32-mdma: initialize m2m_hw_period and ccr to fix warnings 2026-03-04 07:20:33 -05:00
ti dmaengine: ti: k3-udma: fix device leak on udma lookup 2026-01-23 11:21:35 +01:00
xilinx dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property is missing 2026-01-23 11:21:21 +01:00
Kconfig dmaengine: mmp_pdma: Add SpacemiT K1 PDMA support with 64-bit addressing 2025-09-02 12:37:42 +05:30
Makefile dmaengine: add driver for Sophgo CV18XX/SG200X dmamux 2025-06-17 11:26:13 +05:30
TODO
acpi-dma.c
altera-msgdma.c
amba-pl08x.c
apple-admac.c dmaengine: apple-admac: Add "apple,t8103-admac" compatible 2026-01-23 11:21:33 +01:00
arm-dma350.c dmaengine: Add Arm DMA-350 driver 2025-04-17 20:47:39 +05:30
at_hdmac.c dmaengine: at_hdmac: fix device leak on of_dma_xlate() 2026-01-23 11:21:33 +01:00
at_xdmac.c dmaengine: at_xdmac: Use pm_runtime_put_noidle() with many usage_counts 2025-04-17 20:38:10 +05:30
bcm-sba-raid.c dmaengine: bcm-sba-raid: fix device leak on probe 2026-01-23 11:21:33 +01:00
bcm2835-dma.c dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n 2025-02-27 12:37:14 +05:30
cv1800b-dmamux.c dmaengine: cv1800b-dmamux: fix device leak on route allocation 2026-01-23 11:21:33 +01:00
dma-axi-dmac.c dma: dma-axi-dmac: fix HW scatter-gather not looking at the queue 2026-02-26 14:59:32 -08:00
dma-jz4780.c
dmaengine.c dmaengine: Add devm_dma_request_chan() 2025-06-26 15:18:04 -07:00
dmaengine.h
dmatest.c dmaengine: Revert "dmaengine: dmatest: Fix dmatest waiting less when interrupted" 2025-04-17 15:06:02 +05:30
ep93xx_dma.c
fsl-edma-common.c dmaengine: fsl-edma: Fix clk leak on alloc_chan_resources failure 2026-01-23 11:21:33 +01:00
fsl-edma-common.h dmaegnine: fsl-edma: add edma error interrupt handler 2025-04-23 18:42:46 +05:30
fsl-edma-main.c dmaengine: fsl-edma: don't explicitly disable clocks in .remove() 2026-02-26 14:59:35 -08:00
fsl-edma-trace.c
fsl-edma-trace.h
fsl-qdma.c dmaengine: fsl-qdma: Add missing fsl_qdma_format kerneldoc 2025-06-26 15:29:44 -07:00
fsl_raid.c
fsl_raid.h
fsldma.c fsldma: Set correct dma_mask based on hw capability 2025-05-14 15:25:15 +01:00
fsldma.h fsldma: Set correct dma_mask based on hw capability 2025-05-14 15:25:15 +01:00
hisi_dma.c
idma64.c
idma64.h
img-mdc-dma.c dmaengine: img-mdc: remove incorrect of_match_ptr annotation 2025-02-27 12:34:57 +05:30
imx-dma.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
imx-sdma.c dmaengine: Replace zero-length array with flexible-array 2025-09-02 12:00:49 +05:30
k3dma.c
loongson1-apb-dma.c
loongson2-apb-dma.c
lpc18xx-dmamux.c dmaengine: lpc18xx-dmamux: fix device leak on route allocation 2026-01-23 11:21:33 +01:00
lpc32xx-dmamux.c dmaengine: lpc32xx-dmamux: fix device leak on route allocation 2026-01-23 11:21:34 +01:00
mcf-edma-main.c
milbeaut-hdmac.c
milbeaut-xdmac.c
mmp_pdma.c dmaengine: mmp_pdma: Fix race condition in mmp_pdma_residue() 2026-02-11 13:41:50 +01:00
mmp_tdma.c dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning 2025-06-26 15:29:44 -07:00
moxart-dma.c
mpc512x_dma.c
mv_xor.c dmaengine: mv_xor: match alloc_wc and free_wc 2025-09-02 12:41:17 +05:30
mv_xor.h
mv_xor_v2.c
mxs-dma.c
nbpfaxi.c dmaengine updates for v6.17 2025-08-01 12:35:12 -07:00
of-dma.c
owl-dma.c
pch_dma.c
pl330.c
plx_dma.c
pxa_dma.c dmaengine: Use str_enable_disable-like helpers 2025-02-10 19:57:11 +05:30
sa11x0-dma.c
sprd-dma.c
st_fdma.c
st_fdma.h
ste_dma40.c
ste_dma40.h
ste_dma40_ll.c
ste_dma40_ll.h
sun4i-dma.c dmaengine: sun4i: Simplify error handling in probe() 2025-06-26 14:04:03 -07:00
sun6i-dma.c dmaengine: sun6i: Choose appropriate burst length under maxburst 2026-03-04 07:20:33 -05:00
tegra20-apb-dma.c
tegra186-gpc-dma.c dmaengine: tegra: Return correct DMA status when paused 2024-12-24 15:49:30 +05:30
tegra210-adma.c dmaengine: tegra-adma: Fix use-after-free 2026-01-23 11:21:21 +01:00
timb_dma.c
txx9dmac.c
txx9dmac.h
uniphier-mdmac.c
uniphier-xdmac.c
virt-dma.c
virt-dma.h
xgene-dma.c