Skip to content

mlxsw: Various static checkers fixes

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mlxsw: i2c: Add missing field documentationdrivers/net/ethernet/mellanox/mlxsw/i2c.c+1 -00 replies
2/6mlxsw: spectrum_router: Add proper function documentationdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+9 -50 replies
3/6mlxsw: spectrum: Remove unused RIF and FID familiesdrivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+47 -2480 replies
4/6mlxsw: core_acl: Avoid defining static variable in header filedrivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h+47 -390 replies
5/6mlxsw: switchx2: Remove unnecessary conversion to booldrivers/net/ethernet/mellanox/mlxsw/switchx2.c+1 -10 replies
6/6mlxsw: spectrum_router: Avoid uninitialized symbol errorsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+4 -30 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] mlxsw: Various static checkers fixes

From: Ido Schimmel <[email protected]>

Jakub told me he gets some warnings with W=1, so I decided to check with sparse, smatch and coccinelle as well. This patch set fixes all the issues found. None are actual bugs / regressions and therefore not targeted at net.

Patches #1-#2 add missing kernel-doc comments.

Patch #3 removes dead code.

Patch #4 reworks the ACL code to avoid defining a static variable in a header file.

Patch #5 removes unnecessary conversion to bool that coccinelle warns about.

Patch #6 avoids false-positive uninitialized symbol errors emitted by smatch.

Ido Schimmel (6):
mlxsw: i2c: Add missing field documentation
mlxsw: spectrum_router: Add proper function documentation
mlxsw: spectrum: Remove unused RIF and FID families
mlxsw: core_acl: Avoid defining static variable in header file
mlxsw: switchx2: Remove unnecessary conversion to bool
mlxsw: spectrum_router: Avoid uninitialized symbol errors

 .../mellanox/mlxsw/core_acl_flex_keys.c       |  50 +++++-
 .../mellanox/mlxsw/core_acl_flex_keys.h       |  36 +---
 drivers/net/ethernet/mellanox/mlxsw/i2c.c     |   1 +
 .../ethernet/mellanox/mlxsw/spectrum_fid.c    | 152 +---------------
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 164 ++++++------------
 .../net/ethernet/mellanox/mlxsw/switchx2.c    |   2 +-
 6 files changed, 109 insertions(+), 296 deletions(-)
Signature · 1 line
2.24.1