========== build_clang - FAILED In file included from ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:21: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o In file included from ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:21: In file included from ../include/linux/pci.h:1658: In file included from ../include/linux/dmapool.h:14: In file included from ../include/linux/scatterlist.h:8: In file included from ../include/linux/mm.h:2224: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15725:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 15725 | if (rc) | ^~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); | ^~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15725:2: note: remove the 'if' if its condition is always false 15725 | if (rc) | ^~~~~~~ 15726 | goto err_reset_rx; | ~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15721:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 15721 | if (rc) | ^~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); | ^~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15721:2: note: remove the 'if' if its condition is always false 15721 | if (rc) | ^~~~~~~ 15722 | goto err_reset_rx; | ~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15717:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 15717 | if (rc) | ^~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); | ^~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15717:2: note: remove the 'if' if its condition is always false 15717 | if (rc) | ^~~~~~~ 15718 | goto err_reset_rx; | ~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15695:31: note: initialize the variable 'cpr' to silence this warning 15695 | struct bnxt_cp_ring_info *cpr; | ^ | = NULL 6 warnings generated. WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/staging/gpib/fmh_gpib/fmh_gpib.o New errors added --- /tmp/tmp.bLW8RgIMlQ 2025-01-16 12:55:09.286644539 -0800 +++ /tmp/tmp.ObWTZJqLCR 2025-01-16 12:56:51.606669124 -0800 @@ -18 +18,38 @@ -3 warnings generated. +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15725:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 15725 | if (rc) + | ^~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here + 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); + | ^~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15725:2: note: remove the 'if' if its condition is always false + 15725 | if (rc) + | ^~~~~~~ + 15726 | goto err_reset_rx; + | ~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15721:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 15721 | if (rc) + | ^~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here + 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); + | ^~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15721:2: note: remove the 'if' if its condition is always false + 15721 | if (rc) + | ^~~~~~~ + 15722 | goto err_reset_rx; + | ~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15717:6: warning: variable 'cpr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 15717 | if (rc) + | ^~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15769:22: note: uninitialized use occurs here + 15769 | bnxt_db_nq_arm(bp, &cpr->cp_db, cpr->cp_raw_cons); + | ^~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15717:2: note: remove the 'if' if its condition is always false + 15717 | if (rc) + | ^~~~~~~ + 15718 | goto err_reset_rx; + | ~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:15695:31: note: initialize the variable 'cpr' to silence this warning + 15695 | struct bnxt_cp_ring_info *cpr; + | ^ + | = NULL +6 warnings generated. Per-file breakdown --- /tmp/tmp.e5sWpRa1YS 2025-01-16 12:56:51.612669068 -0800 +++ /tmp/tmp.2XankMnEzV 2025-01-16 12:56:51.615669040 -0800 @@ -0,0 +1 @@ + 4 ../drivers/net/ethernet/broadcom/bnxt/bnxt.c