Closed nathanchance closed 1 year ago
arch/riscv/mm/dma-noncoherent.c:107:6: warning: variable 'cbom_hartid' is uninitialized when used here [-Wuninitialized] cbom_hartid, hartid); ^~~~~~~~~~~ include/linux/printk.h:517:37: note: expanded from macro 'pr_warn' printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:464:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:436:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ arch/riscv/mm/dma-noncoherent.c:87:18: note: initialize the variable 'cbom_hartid' to silence this warning int cbom_hartid; ^ = 0 1 warning generated.
Patch accepted: https://git.kernel.org/riscv/c/8f7e001e0325de63a42f23342ac3b8139150c5cf
Fixed: https://git.kernel.org/linus/8f7e001e0325de63a42f23342ac3b8139150c5cf