========== build_clang - FAILED WARNING: modpost: missing MODULE_DESCRIPTION() in mm/kasan/kasan_test.o WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o ../drivers/net/ethernet/microsoft/mana/gdma_main.c:500:2: warning: variable 'gic' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 500 | list_for_each(pos, &gc->irq_contexts) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:510:7: note: uninitialized use occurs here 510 | if (!gic) | ^~~ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:500:2: note: remove the condition if it is always true 500 | list_for_each(pos, &gc->irq_contexts) { | ^ ../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) | ^ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:475:30: note: initialize the variable 'gic' to silence this warning 475 | struct gdma_irq_context *gic; | ^ | = NULL ../drivers/net/ethernet/microsoft/mana/gdma_main.c:541:2: warning: variable 'gic' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 541 | list_for_each(pos, &gc->irq_contexts) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:551:7: note: uninitialized use occurs here 551 | if (!gic) | ^~~ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:541:2: note: remove the condition if it is always true 541 | list_for_each(pos, &gc->irq_contexts) { | ^ ../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) | ^ ../drivers/net/ethernet/microsoft/mana/gdma_main.c:523:30: note: initialize the variable 'gic' to silence this warning 523 | struct gdma_irq_context *gic; | ^ | = NULL 2 warnings generated. WARNING: modpost: missing MODULE_DESCRIPTION() in mm/kasan/kasan_test.o WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o New errors added --- /tmp/tmp.2ZDuB40pUX 2025-04-16 15:48:32.912568215 -0700 +++ /tmp/tmp.rqEuCrCS8Q 2025-04-16 15:49:49.559963509 -0700 @@ -0,0 +1,39 @@ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:500:2: warning: variable 'gic' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] + 500 | list_for_each(pos, &gc->irq_contexts) { + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' + 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:510:7: note: uninitialized use occurs here + 510 | if (!gic) + | ^~~ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:500:2: note: remove the condition if it is always true + 500 | list_for_each(pos, &gc->irq_contexts) { + | ^ +../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' + 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) + | ^ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:475:30: note: initialize the variable 'gic' to silence this warning + 475 | struct gdma_irq_context *gic; + | ^ + | = NULL +../drivers/net/ethernet/microsoft/mana/gdma_main.c:541:2: warning: variable 'gic' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] + 541 | list_for_each(pos, &gc->irq_contexts) { + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' + 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:551:7: note: uninitialized use occurs here + 551 | if (!gic) + | ^~~ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:541:2: note: remove the condition if it is always true + 541 | list_for_each(pos, &gc->irq_contexts) { + | ^ +../include/linux/list.h:687:27: note: expanded from macro 'list_for_each' + 687 | for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next) + | ^ +../drivers/net/ethernet/microsoft/mana/gdma_main.c:523:30: note: initialize the variable 'gic' to silence this warning + 523 | struct gdma_irq_context *gic; + | ^ + | = NULL +2 warnings generated. Per-file breakdown --- /tmp/tmp.hO0Zz8CGLN 2025-04-16 15:49:49.566504694 -0700 +++ /tmp/tmp.am6RARR12A 2025-04-16 15:49:49.569504663 -0700 @@ -0,0 +1 @@ + 4 ../drivers/net/ethernet/microsoft/mana/gdma_main.c