../drivers/net/dsa/yt921x.c:2683:6: warning: variable 'mask' set but not used [-Wunused-but-set-variable] 2683 | u32 mask; | ^ ../drivers/net/dsa/yt921x.c:2733:2: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 2733 | default: | ^~~~~~~ ../drivers/net/dsa/yt921x.c:2744:2: note: uninitialized use occurs here 2744 | ctrl |= YT921X_PORT_LINK | YT921X_PORT_RX_MAC_EN | | ^~~~ ../drivers/net/dsa/yt921x.c:2714:10: note: initialize the variable 'ctrl' to silence this warning 2714 | u32 ctrl; | ^ | = 0 ../drivers/net/dsa/yt921x.c:2865:3: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 2865 | default: | ^~~~~~~ ../drivers/net/dsa/yt921x.c:2870:17: note: uninitialized use occurs here 2870 | mask, ctrl); | ^~~~ ../drivers/net/dsa/yt921x.c:2824:10: note: initialize the variable 'ctrl' to silence this warning 2824 | u32 ctrl; | ^ | = 0 3 warnings generated. ../drivers/net/dsa/yt921x.c:2683:6: warning: variable 'mask' set but not used [-Wunused-but-set-variable] 2683 | u32 mask; | ^ ../drivers/net/dsa/yt921x.c:2733:2: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 2733 | default: | ^~~~~~~ ../drivers/net/dsa/yt921x.c:2744:2: note: uninitialized use occurs here 2744 | ctrl |= YT921X_PORT_LINK | YT921X_PORT_RX_MAC_EN | | ^~~~ ../drivers/net/dsa/yt921x.c:2714:10: note: initialize the variable 'ctrl' to silence this warning 2714 | u32 ctrl; | ^ | = 0 ../drivers/net/dsa/yt921x.c:2865:3: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 2865 | default: | ^~~~~~~ ../drivers/net/dsa/yt921x.c:2870:17: note: uninitialized use occurs here 2870 | mask, ctrl); | ^~~~ ../drivers/net/dsa/yt921x.c:2824:10: note: initialize the variable 'ctrl' to silence this warning 2824 | u32 ctrl; | ^ | = 0 3 warnings generated. New errors added --- /tmp/tmp.nuoLqMrOtI 2025-08-23 18:41:10.569580434 -0700 +++ /tmp/tmp.5J9amB3AdD 2025-08-23 18:45:18.730238827 -0700 @@ -0,0 +1,24 @@ +../drivers/net/dsa/yt921x.c:2683:6: warning: variable 'mask' set but not used [-Wunused-but-set-variable] + 2683 | u32 mask; + | ^ +../drivers/net/dsa/yt921x.c:2733:2: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] + 2733 | default: + | ^~~~~~~ +../drivers/net/dsa/yt921x.c:2744:2: note: uninitialized use occurs here + 2744 | ctrl |= YT921X_PORT_LINK | YT921X_PORT_RX_MAC_EN | + | ^~~~ +../drivers/net/dsa/yt921x.c:2714:10: note: initialize the variable 'ctrl' to silence this warning + 2714 | u32 ctrl; + | ^ + | = 0 +../drivers/net/dsa/yt921x.c:2865:3: warning: variable 'ctrl' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] + 2865 | default: + | ^~~~~~~ +../drivers/net/dsa/yt921x.c:2870:17: note: uninitialized use occurs here + 2870 | mask, ctrl); + | ^~~~ +../drivers/net/dsa/yt921x.c:2824:10: note: initialize the variable 'ctrl' to silence this warning + 2824 | u32 ctrl; + | ^ + | = 0 +3 warnings generated. Per-file breakdown --- /tmp/tmp.RzDFn3QrQu 2025-08-23 18:48:46.357574084 -0700 +++ /tmp/tmp.XHetaoGtey 2025-08-23 18:48:46.360574064 -0700 @@ -0,0 +1 @@ + 5 ../drivers/net/dsa/yt921x.c