========== build_clang - FAILED .pylintrc: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:908:28: warning: unused function 'rnpgbe_rx_offset' [-Wunused-function] 908 | static inline unsigned int rnpgbe_rx_offset(void) | ^~~~~~~~~~~~~~~~ 1 warning generated. .pylintrc: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:6: warning: variable 'duplex' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:123:18: note: uninitialized use occurs here 123 | mucse->duplex = duplex; | ^~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:2: note: remove the 'if' if its condition is always true 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~~~~~~ 110 | hw->ops.check_link(hw, &link_speed, &link_up, &duplex); 111 | } else { | ~~~~~~ 112 | /* always assume link is up, if no check link function */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | link_speed = M_LINK_SPEED_1GB_FULL; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 114 | link_up = true; | ~~~~~~~~~~~~~~~ 115 | } | ~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:103:13: note: initialize the variable 'duplex' to silence this warning 103 | bool duplex; | ^ | = 0 1 warning generated. ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:908:28: warning: unused function 'rnpgbe_rx_offset' [-Wunused-function] 908 | static inline unsigned int rnpgbe_rx_offset(void) | ^~~~~~~~~~~~~~~~ 1 warning generated. New errors added --- /tmp/tmp.6ljN5BNvTn 2025-07-02 22:17:46.805542564 -0700 +++ /tmp/tmp.1vGHs0lyhJ 2025-07-02 22:19:00.285344497 -0700 @@ -1,0 +2,25 @@ +../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:6: warning: variable 'duplex' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 109 | if (hw->ops.check_link) { + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:123:18: note: uninitialized use occurs here + 123 | mucse->duplex = duplex; + | ^~~~~~ +../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:2: note: remove the 'if' if its condition is always true + 109 | if (hw->ops.check_link) { + | ^~~~~~~~~~~~~~~~~~~~~~~ + 110 | hw->ops.check_link(hw, &link_speed, &link_up, &duplex); + 111 | } else { + | ~~~~~~ + 112 | /* always assume link is up, if no check link function */ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 113 | link_speed = M_LINK_SPEED_1GB_FULL; + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 114 | link_up = true; + | ~~~~~~~~~~~~~~~ + 115 | } + | ~ +../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:103:13: note: initialize the variable 'duplex' to silence this warning + 103 | bool duplex; + | ^ + | = 0 +1 warning generated. Per-file breakdown --- /tmp/tmp.9ctW1fMCf0 2025-07-02 22:19:54.238705514 -0700 +++ /tmp/tmp.13gcnJ9C3e 2025-07-02 22:19:54.240705501 -0700 @@ -1,0 +2 @@ + 2 ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c