From: Tariq Toukan <tariqt@nvidia.com>
To: Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>
Cc: Saeed Mahameed <saeedm@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>,
"Julia Lawall" <Julia.Lawall@inria.fr>,
Nicolas Palix <nicolas.palix@imag.fr>,
Richard Cochran <richardcochran@gmail.com>,
<linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-rdma@vger.kernel.org>, <cocci@inria.fr>,
"Gal Pressman" <gal@nvidia.com>
Subject: [cocci] [PATCH net-next 0/2] scripts/coccinelle: Symbolic error names script
Date: Thu, 18 Sep 2025 13:43:45 +0300 [thread overview]
Message-ID: <1758192227-701925-1-git-send-email-tariqt@nvidia.com> (raw)
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
next reply other threads:[~2025-09-25 13:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 10:43 Tariq Toukan [this message]
2025-09-18 10:43 ` [cocci] [PATCH net-next 1/2] scripts/coccinelle: Find PTR_ERR() to %pe candidates Tariq Toukan
2025-09-19 16:54 ` Simon Horman
2025-09-22 23:36 ` Jakub Kicinski
2025-09-25 15:07 ` Markus Elfring
2025-09-28 11:40 ` Gal Pressman
2025-09-28 12:00 ` Markus Elfring
2025-09-28 13:24 ` Gal Pressman
2025-09-28 14:16 ` Markus Elfring
2025-09-28 16:40 ` Gal Pressman
2025-09-28 17:51 ` [cocci] [1/2] " Markus Elfring
2025-09-28 12:23 ` [cocci] [PATCH net-next 1/2] " Julia Lawall
2025-09-28 13:17 ` Gal Pressman
2025-09-18 10:43 ` [cocci] [PATCH net-next 2/2] net/mlx5: Use %pe format specifier for error pointers Tariq Toukan
2025-09-19 16:55 ` Simon Horman
2025-09-26 19:50 ` [cocci] [PATCH net-next 0/2] scripts/coccinelle: Symbolic error names script patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1758192227-701925-1-git-send-email-tariqt@nvidia.com \
--to=tariqt@nvidia.com \
--cc=Julia.Lawall@inria.fr \
--cc=andrew+netdev@lunn.ch \
--cc=cocci@inria.fr \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gal@nvidia.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.palix@imag.fr \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=saeedm@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).