mlxsw: Various static checkers fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mlxsw: i2c: Add missing field documentationdrivers/ | +1 | 0 replies | |
| 2/6 | mlxsw: spectrum_router: Add proper function documentationdrivers/ | +9 | 0 replies | |
| 3/6 | mlxsw: spectrum: Remove unused RIF and FID familiesdrivers/ drivers/ | +47 | 0 replies | |
| 4/6 | mlxsw: core_acl: Avoid defining static variable in header filedrivers/ drivers/ | +47 | 0 replies | |
| 5/6 | mlxsw: switchx2: Remove unnecessary conversion to booldrivers/ | +1 | 0 replies | |
| 6/6 | mlxsw: spectrum_router: Avoid uninitialized symbol errorsdrivers/ | +4 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Pirko |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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