[PATCH net-next 0/2] scripts/coccinelle: Symbolic error names script

Tariq Toukan posted 2 patches 1 week, 6 days ago
.../mellanox/mlx5/core/diag/reporter_vnic.c   |  4 +-
.../mellanox/mlx5/core/en/hv_vhca_stats.c     |  4 +-
.../mellanox/mlx5/core/en/rep/bridge.c        |  7 +--
.../mellanox/mlx5/core/en/reporter_rx.c       |  4 +-
.../mellanox/mlx5/core/en/reporter_tx.c       |  4 +-
.../mellanox/mlx5/core/en/tc/ct_fs_hmfs.c     |  4 +-
.../mellanox/mlx5/core/en/tc/ct_fs_smfs.c     |  4 +-
.../mellanox/mlx5/core/en/tc/int_port.c       |  8 ++--
.../mellanox/mlx5/core/en/tc_tun_encap.c      |  8 ++--
.../mellanox/mlx5/core/en_accel/fs_tcp.c      |  2 +-
.../mellanox/mlx5/core/en_accel/ipsec_fs.c    |  4 +-
.../ethernet/mellanox/mlx5/core/en_common.c   |  4 +-
.../net/ethernet/mellanox/mlx5/core/en_rep.c  |  4 +-
.../mellanox/mlx5/core/esw/acl/egress_lgcy.c  |  4 +-
.../ethernet/mellanox/mlx5/core/esw/bridge.c  | 47 ++++++++++---------
.../mellanox/mlx5/core/esw/vporttbl.c         |  4 +-
.../net/ethernet/mellanox/mlx5/core/eswitch.c |  4 +-
.../mellanox/mlx5/core/eswitch_offloads.c     | 16 ++++---
.../net/ethernet/mellanox/mlx5/core/health.c  |  8 ++--
.../mellanox/mlx5/core/irq_affinity.c         |  4 +-
.../ethernet/mellanox/mlx5/core/lib/clock.c   |  4 +-
.../net/ethernet/mellanox/mlx5/core/main.c    |  4 +-
scripts/coccinelle/misc/ptr_err_to_pe.cocci   | 34 ++++++++++++++
23 files changed, 114 insertions(+), 76 deletions(-)
create mode 100644 scripts/coccinelle/misc/ptr_err_to_pe.cocci
[PATCH net-next 0/2] scripts/coccinelle: Symbolic error names script
Posted by Tariq Toukan 1 week, 6 days ago
Hi,

This small series by Gal adds a new coccinelle script that spots
potential transitions to symbolic error names in print functions, and
then uses it in mlx5 driver.

Regards,
Tariq

Gal Pressman (2):
  scripts/coccinelle: Find PTR_ERR() to %pe candidates
  net/mlx5: Use %pe format specifier for error pointers

 .../mellanox/mlx5/core/diag/reporter_vnic.c   |  4 +-
 .../mellanox/mlx5/core/en/hv_vhca_stats.c     |  4 +-
 .../mellanox/mlx5/core/en/rep/bridge.c        |  7 +--
 .../mellanox/mlx5/core/en/reporter_rx.c       |  4 +-
 .../mellanox/mlx5/core/en/reporter_tx.c       |  4 +-
 .../mellanox/mlx5/core/en/tc/ct_fs_hmfs.c     |  4 +-
 .../mellanox/mlx5/core/en/tc/ct_fs_smfs.c     |  4 +-
 .../mellanox/mlx5/core/en/tc/int_port.c       |  8 ++--
 .../mellanox/mlx5/core/en/tc_tun_encap.c      |  8 ++--
 .../mellanox/mlx5/core/en_accel/fs_tcp.c      |  2 +-
 .../mellanox/mlx5/core/en_accel/ipsec_fs.c    |  4 +-
 .../ethernet/mellanox/mlx5/core/en_common.c   |  4 +-
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |  4 +-
 .../mellanox/mlx5/core/esw/acl/egress_lgcy.c  |  4 +-
 .../ethernet/mellanox/mlx5/core/esw/bridge.c  | 47 ++++++++++---------
 .../mellanox/mlx5/core/esw/vporttbl.c         |  4 +-
 .../net/ethernet/mellanox/mlx5/core/eswitch.c |  4 +-
 .../mellanox/mlx5/core/eswitch_offloads.c     | 16 ++++---
 .../net/ethernet/mellanox/mlx5/core/health.c  |  8 ++--
 .../mellanox/mlx5/core/irq_affinity.c         |  4 +-
 .../ethernet/mellanox/mlx5/core/lib/clock.c   |  4 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    |  4 +-
 scripts/coccinelle/misc/ptr_err_to_pe.cocci   | 34 ++++++++++++++
 23 files changed, 114 insertions(+), 76 deletions(-)
 create mode 100644 scripts/coccinelle/misc/ptr_err_to_pe.cocci


base-commit: 152ba35c04ade1a164c774d6fccbf8e8cf4652cf
-- 
2.31.1