========== build_clang - FAILED drivers/net/ethernet/intel/ixgbe/ixgbe.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8 ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:45:12: warning: variable 'orom' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 45 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:49:5: note: uninitialized use occurs here 49 | orom->major, orom->build, orom->patch); | ^~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:45:8: note: remove the 'if' if its condition is always true 45 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 46 | orom = &ctx->pending_orom; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:41:31: note: initialize the variable 'orom' to silence this warning 41 | struct ixgbe_orom_info *orom; | ^ | = NULL ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:80:12: warning: variable 'eetrack' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 80 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:83:50: note: uninitialized use occurs here 83 | snprintf(ctx->buf, sizeof(ctx->buf), "0x%08x", eetrack); | ^~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:80:8: note: remove the 'if' if its condition is always true 80 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 81 | eetrack = ctx->pending_nvm.eetrack; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:76:14: note: initialize the variable 'eetrack' to silence this warning 76 | u32 eetrack; | ^ | = 0 ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:124:11: warning: variable 'nvm' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 124 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:127:45: note: uninitialized use occurs here 127 | snprintf(ctx->buf, sizeof(ctx->buf), "%u", nvm->srev); | ^~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:124:7: note: remove the 'if' if its condition is always true 124 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 125 | nvm = &ctx->pending_nvm; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:120:28: note: initialize the variable 'nvm' to silence this warning 120 | struct ixgbe_nvm_info *nvm; | ^ | = NULL ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:138:11: warning: variable 'orom' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 138 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:141:45: note: uninitialized use occurs here 141 | snprintf(ctx->buf, sizeof(ctx->buf), "%u", orom->srev); | ^~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:138:7: note: remove the 'if' if its condition is always true 138 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | orom = &ctx->pending_orom; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:134:30: note: initialize the variable 'orom' to silence this warning 134 | struct ixgbe_orom_info *orom; | ^ | = NULL ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:152:11: warning: variable 'nvm' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 152 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:155:50: note: uninitialized use occurs here 155 | snprintf(ctx->buf, sizeof(ctx->buf), "%x.%02x", nvm->major, nvm->minor); | ^~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:152:7: note: remove the 'if' if its condition is always true 152 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 153 | nvm = &ctx->pending_nvm; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:148:28: note: initialize the variable 'nvm' to silence this warning 148 | struct ixgbe_nvm_info *nvm; | ^ | = NULL ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:166:11: warning: variable 'netlist' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 166 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:171:4: note: uninitialized use occurs here 171 | netlist->major, netlist->minor, | ^~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:166:7: note: remove the 'if' if its condition is always true 166 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | netlist = &ctx->pending_netlist; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:162:36: note: initialize the variable 'netlist' to silence this warning 162 | struct ixgbe_netlist_info *netlist; | ^ | = NULL ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:184:11: warning: variable 'netlist' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 184 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:187:49: note: uninitialized use occurs here 187 | snprintf(ctx->buf, sizeof(ctx->buf), "0x%08x", netlist->hash); | ^~~~~~~ ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:184:7: note: remove the 'if' if its condition is always true 184 | else if (type == IXGBE_DL_VERSION_STORED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 185 | netlist = &ctx->pending_netlist; ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:180:36: note: initialize the variable 'netlist' to silence this warning 180 | struct ixgbe_netlist_info *netlist; | ^ | = NULL 7 warnings generated. drivers/net/ethernet/intel/ixgbe/ixgbe.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8 New errors added --- /tmp/tmp.zcIp70JEl2 2025-02-14 06:44:45.814956760 -0800 +++ /tmp/tmp.lmSCd3ftOf 2025-02-14 06:45:50.350238544 -0800 @@ -0,0 +1,99 @@ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:45:12: warning: variable 'orom' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 45 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:49:5: note: uninitialized use occurs here + 49 | orom->major, orom->build, orom->patch); + | ^~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:45:8: note: remove the 'if' if its condition is always true + 45 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 46 | orom = &ctx->pending_orom; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:41:31: note: initialize the variable 'orom' to silence this warning + 41 | struct ixgbe_orom_info *orom; + | ^ + | = NULL +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:80:12: warning: variable 'eetrack' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 80 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:83:50: note: uninitialized use occurs here + 83 | snprintf(ctx->buf, sizeof(ctx->buf), "0x%08x", eetrack); + | ^~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:80:8: note: remove the 'if' if its condition is always true + 80 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 81 | eetrack = ctx->pending_nvm.eetrack; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:76:14: note: initialize the variable 'eetrack' to silence this warning + 76 | u32 eetrack; + | ^ + | = 0 +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:124:11: warning: variable 'nvm' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 124 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:127:45: note: uninitialized use occurs here + 127 | snprintf(ctx->buf, sizeof(ctx->buf), "%u", nvm->srev); + | ^~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:124:7: note: remove the 'if' if its condition is always true + 124 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 125 | nvm = &ctx->pending_nvm; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:120:28: note: initialize the variable 'nvm' to silence this warning + 120 | struct ixgbe_nvm_info *nvm; + | ^ + | = NULL +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:138:11: warning: variable 'orom' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 138 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:141:45: note: uninitialized use occurs here + 141 | snprintf(ctx->buf, sizeof(ctx->buf), "%u", orom->srev); + | ^~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:138:7: note: remove the 'if' if its condition is always true + 138 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | orom = &ctx->pending_orom; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:134:30: note: initialize the variable 'orom' to silence this warning + 134 | struct ixgbe_orom_info *orom; + | ^ + | = NULL +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:152:11: warning: variable 'nvm' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 152 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:155:50: note: uninitialized use occurs here + 155 | snprintf(ctx->buf, sizeof(ctx->buf), "%x.%02x", nvm->major, nvm->minor); + | ^~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:152:7: note: remove the 'if' if its condition is always true + 152 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 153 | nvm = &ctx->pending_nvm; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:148:28: note: initialize the variable 'nvm' to silence this warning + 148 | struct ixgbe_nvm_info *nvm; + | ^ + | = NULL +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:166:11: warning: variable 'netlist' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 166 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:171:4: note: uninitialized use occurs here + 171 | netlist->major, netlist->minor, + | ^~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:166:7: note: remove the 'if' if its condition is always true + 166 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 167 | netlist = &ctx->pending_netlist; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:162:36: note: initialize the variable 'netlist' to silence this warning + 162 | struct ixgbe_netlist_info *netlist; + | ^ + | = NULL +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:184:11: warning: variable 'netlist' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 184 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:187:49: note: uninitialized use occurs here + 187 | snprintf(ctx->buf, sizeof(ctx->buf), "0x%08x", netlist->hash); + | ^~~~~~~ +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:184:7: note: remove the 'if' if its condition is always true + 184 | else if (type == IXGBE_DL_VERSION_STORED) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 185 | netlist = &ctx->pending_netlist; +../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c:180:36: note: initialize the variable 'netlist' to silence this warning + 180 | struct ixgbe_netlist_info *netlist; + | ^ + | = NULL +7 warnings generated. Per-file breakdown --- /tmp/tmp.LkZgD2tMds 2025-02-14 06:45:50.356238477 -0800 +++ /tmp/tmp.xVoc4YnjvF 2025-02-14 06:45:50.359238444 -0800 @@ -0,0 +1 @@ + 14 ../drivers/net/ethernet/intel/ixgbe/devlink/devlink.c