Skip to content

Networking driver debugfs cleanups

Greg Kroah-Hartman intel-wired-lan linux-wpan netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest17 patches 9 repliesIn review
  2. v217 patches 4 repliesSuperseded
  3. v117 patches 14 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17wimax: no need to check return value of debugfs_create functionsdrivers/net/wimax/i2400m/debugfs.c drivers/net/wimax/i2400m/driver.c drivers/net/wimax/i2400m/i2400m.h +5 more+51 -2570 replies
2/17bonding: no need to print a message if debugfs_create_dir() failsdrivers/net/bonding/bond_debugfs.c+0 -50 replies
3/17mlx5: no need to check return value of debugfs_create functionsdrivers/net/ethernet/mellanox/mlx5/core/cmd.c drivers/net/ethernet/mellanox/mlx5/core/debugfs.c drivers/net/ethernet/mellanox/mlx5/core/eq.c +4 more+24 -1630 replies
4/17xgbe: no need to check return value of debugfs_create functionsdrivers/net/ethernet/amd/xgbe/xgbe-debugfs.c+31 -760 replies
5/17bnxt: no need to check return value of debugfs_create functionsdrivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c+11 -290 replies
6/17cxgb4: no need to check return value of debugfs_create functionsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c+9 -200 replies
7/17hns3: no need to check return value of debugfs_create functionsdrivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c+2 -150 replies
8/17nfp: no need to check return value of debugfs_create functionsdrivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c+1 -160 replies
9/17stmmac: no need to check return value of debugfs_create functionsdrivers/net/ethernet/stmicro/stmmac/stmmac.h drivers/net/ethernet/stmicro/stmmac/stmmac_main.c+8 -460 replies
10/17dpaa2: no need to check return value of debugfs_create functionsdrivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.h+7 -500 replies
11/17qca: no need to check return value of debugfs_create functionsdrivers/net/ethernet/qualcomm/qca_debug.c+3 -101 reply
12/17skge: no need to check return value of debugfs_create functionsdrivers/net/ethernet/marvell/skge.c+9 -300 replies
13/17mvpp2: no need to check return value of debugfs_create functionsdrivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c+1 -184 replies
14/17fm10k: no need to check return value of debugfs_create functionsdrivers/net/ethernet/intel/fm10k/fm10k_debugfs.c+0 -21 reply
15/17i40e: no need to check return value of debugfs_create functionsdrivers/net/ethernet/intel/i40e/i40e_debugfs.c+4 -181 reply
16/17ixgbe: no need to check return value of debugfs_create functionsdrivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c+5 -171 reply
17/17ieee802154: no need to check return value of debugfs_create functionsdrivers/net/ieee802154/adf7242.c drivers/net/ieee802154/at86rf230.c drivers/net/ieee802154/ca8210.c+9 -330 replies

Reviews trailers per patch

6 of 17 patches have a Reviewed-by or Acked-by.

PatchStefan SchmidtMichael HennerichJakub KicinskiJeff KirsherStefan Wahren
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17A-b
9/17
10/17
11/17A-b
12/17
13/17
14/17A-b
15/17A-b
16/17A-b
17/17A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/17] Networking driver debugfs cleanups

There is no need to test the result of any debugfs call anymore. The debugfs core warns the user if something fails, and the return value of a debugfs call can always be fed back into another debugfs call with no problems.

Also, debugfs is for debugging, so if there are problems with debugfs (i.e. the system is out of memory) the rest of the kernel should not change behavior, so testing for debugfs calls is pointless and not the goal of debugfs at all.

This series cleans up a lot of networking drivers and some wimax code that was calling debugfs and trying to do something with the return value that it didn't need to. Removing this logic makes the code smaller, easier to understand, and use less run-time memory in some cases, all good things.

The series is against net-next, and have no dependancies between any of them if they want to go through any random tree/order. Or, if wanted, I can take them through my driver-core tree where other debugfs cleanups are being slowly fed during major merge windows.

thanks,

greg k-h

v3: fix build warning in i2400m, I thought I had caught them all :(
add acks from some reviewers

v2: fix up build warnings, it's as if I never even built these. Ugh, so
sorry for wasting people's time with the v1 series. I need to stop relying on 0-day as it isn't working well anymore :(

Greg Kroah-Hartman (17):
wimax: no need to check return value of debugfs_create functions
bonding: no need to print a message if debugfs_create_dir() fails
mlx5: no need to check return value of debugfs_create functions
xgbe: no need to check return value of debugfs_create functions
bnxt: no need to check return value of debugfs_create functions
cxgb4: no need to check return value of debugfs_create functions
hns3: no need to check return value of debugfs_create functions
nfp: no need to check return value of debugfs_create functions
stmmac: no need to check return value of debugfs_create functions
dpaa2: no need to check return value of debugfs_create functions
qca: no need to check return value of debugfs_create functions
skge: no need to check return value of debugfs_create functions
mvpp2: no need to check return value of debugfs_create functions
fm10k: no need to check return value of debugfs_create functions
i40e: no need to check return value of debugfs_create functions
ixgbe: no need to check return value of debugfs_create functions
ieee802154: no need to check return value of debugfs_create functions

 drivers/net/bonding/bond_debugfs.c            |   5 -
 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c  | 107 ++++---------
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |   1 -
 .../net/ethernet/broadcom/bnxt/bnxt_debugfs.c |  39 ++---
 .../ethernet/chelsio/cxgb4/cxgb4_debugfs.c    |   5 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_main.c   |   3 -
 .../ethernet/chelsio/cxgb4vf/cxgb4vf_main.c   |  21 +--
 .../freescale/dpaa2/dpaa2-eth-debugfs.c       |  54 +------
 .../freescale/dpaa2/dpaa2-eth-debugfs.h       |   3 -
 .../ethernet/hisilicon/hns3/hns3_debugfs.c    |  17 +-
 .../net/ethernet/intel/fm10k/fm10k_debugfs.c  |   2 -
 .../net/ethernet/intel/i40e/i40e_debugfs.c    |  22 +--
 .../net/ethernet/intel/ixgbe/ixgbe_debugfs.c  |  22 +--
 .../ethernet/marvell/mvpp2/mvpp2_debugfs.c    |  19 +--
 drivers/net/ethernet/marvell/skge.c           |  39 ++---
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c |  51 +-----
 .../net/ethernet/mellanox/mlx5/core/debugfs.c | 102 ++----------
 drivers/net/ethernet/mellanox/mlx5/core/eq.c  |  11 +-
 .../net/ethernet/mellanox/mlx5/core/lib/eq.h  |   2 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    |   7 +-
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   2 +-
 .../ethernet/netronome/nfp/nfp_net_debugfs.c  |  17 +-
 drivers/net/ethernet/qualcomm/qca_debug.c     |  13 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac.h  |   2 -
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  52 +-----
 drivers/net/ieee802154/adf7242.c              |  13 +-
 drivers/net/ieee802154/at86rf230.c            |  20 +--
 drivers/net/ieee802154/ca8210.c               |   9 +-
 drivers/net/wimax/i2400m/debugfs.c            | 150 +++---------------
 drivers/net/wimax/i2400m/driver.c             |   7 +-
 drivers/net/wimax/i2400m/i2400m.h             |   7 +-
 drivers/net/wimax/i2400m/usb.c                |  64 ++------
 include/linux/mlx5/driver.h                   |  12 +-
 include/linux/wimax/debug.h                   |  20 +--
 net/wimax/debugfs.c                           |  42 +----
 net/wimax/stack.c                             |  11 +-
 net/wimax/wimax-internal.h                    |   7 +-
 37 files changed, 175 insertions(+), 805 deletions(-)
Signature · 1 line
2.22.0