====== Checking before the patch ====== ====== Checking the tree with the patch ====== tools/testing/selftests/drivers/net/netdevsim/ethtool-phy.sh is a new file, but not shellcheck compliant New errors added --- /tmp/tmp.clptDrbBLZ 2025-07-10 00:02:40.990563642 -0700 +++ /tmp/tmp.jIAux6QHpT 2025-07-10 00:02:41.189562477 -0700 @@ -11,0 +12,40 @@ + +In ethtool-phy.sh line 4: +source ethtool-common.sh + ^---------------^ SC1094 (warning): Parsing of sourced file failed. Ignoring it. + + +In ethtool-phy.sh line 33: +PHY_DFS=$(make_phydev_on_netdev "$NSIM_ID" 0) +^-----^ SC2034 (warning): PHY_DFS appears unused. Verify use (or export if used externally). + ^------^ SC2153 (info): Possible misspelling: NSIM_ID may not be assigned. Did you mean NSIM_ID2? + + +In ethtool-phy.sh line 40: +PHY2_DFS=$(make_phydev_on_netdev "$NSIM_ID" 0) +^------^ SC2034 (warning): PHY2_DFS appears unused. Verify use (or export if used externally). + + +In ethtool-phy.sh line 44: +NSIM_NETDEV_2=$(make_netdev_from_id "$NSIM_ID2") +^-----------^ SC2034 (warning): NSIM_NETDEV_2 appears unused. Verify use (or export if used externally). + + +In ethtool-phy.sh line 46: +PHY3_DFS=$(make_phydev_on_netdev "$NSIM_ID2" 0); +^------^ SC2034 (warning): PHY3_DFS appears unused. Verify use (or export if used externally). + + +In ethtool-phy.sh line 58: +if [ "$num_errors" -eq 0 ]; then + ^---------^ SC2154 (warning): num_errors is referenced but not assigned. + + +In ethtool-phy.sh line 59: + echo "PASSED all $((num_passes)) checks" + ^--------^ SC2154 (warning): num_passes is referenced but not assigned. + +For more information: + https://www.shellcheck.net/wiki/SC1094 -- Parsing of sourced file failed. I... + https://www.shellcheck.net/wiki/SC2034 -- NSIM_NETDEV_2 appears unused. Ver... + https://www.shellcheck.net/wiki/SC2154 -- num_errors is referenced but not ...