diff options
| author | Clément Le Goffic <clement.legoffic@foss.st.com> | 2025-12-17 09:15:03 +0100 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2025-12-23 16:27:32 +0530 |
| commit | aaf3bc0265744adbc2d364964ef409cf118d193d (patch) | |
| tree | e29d59e410e796ecd5232ec5a0b6529275d2c77b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 5c9142a8063f71233b25d94ae0d73e7dcf9d2a1d (diff) | |
| download | linux-aaf3bc0265744adbc2d364964ef409cf118d193d.tar.gz linux-aaf3bc0265744adbc2d364964ef409cf118d193d.zip | |
dmaengine: stm32-mdma: initialize m2m_hw_period and ccr to fix warnings
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
