Linux: -Wuninitialized in drivers/dma/fsl-dpaa2-qdma/dpdmai.c

Created on 22 Oct 2019  路  2Comments  路  Source: ClangBuiltLinux/linux

drivers/dma/fsl-dpaa2-qdma/dpdmai.c:148:25: warning: variable 'cfg' is uninitialized when used within its own initialization [-Wuninitialized]
        DPDMAI_CMD_CREATE(cmd, cfg);
        ~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/dma/fsl-dpaa2-qdma/dpdmai.c:42:24: note: expanded from macro 'DPDMAI_CMD_CREATE'
        typeof(_cfg) (cfg) = (_cfg); \
                      ~~~     ^~~~
1 warning generated.

Patch submitted: https://lore.kernel.org/lkml/[email protected]/

-Wuninitialized [BUG] linux-next [FIXED][LINUX] -next

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings