From: Andrew Lunn <andrew@lunn.ch>
To: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr>
Cc: linux-media@vger.kernel.org, linux-mips@vger.kernel.org,
netdev@vger.kernel.org, linux-can@vger.kernel.org,
"Rafał Miłecki" <zajec5@gmail.com>,
"Michael Chan" <michael.chan@broadcom.com>,
"Sunil Goutham" <sgoutham@marvell.com>,
"Geetha sowjanya" <gakula@marvell.com>,
"Subbaraya Sundeep" <sbhatta@marvell.com>,
hariprasad <hkelam@marvell.com>,
"Bharat Bhushan" <bbhushan2@marvell.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>
Subject: Re: [PATCH 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values
Date: Sat, 21 Dec 2024 16:17:57 +0100 [thread overview]
Message-ID: <e99c8ff0-4b72-400b-a530-6808adbd5d1a@lunn.ch> (raw)
In-Reply-To: <20241221035352.1020228-2-ariel.otilibili-anieli@eurecom.fr>
On Sat, Dec 21, 2024 at 04:44:15AM +0100, Ariel Otilibili wrote:
> Coverity-IDs: 1487817, 1561102
> Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr>
One patch per driver please.
> --- a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
> @@ -329,11 +329,9 @@ static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf,
> mac_da = ether_addr_to_u64(secy->netdev->dev_addr);
>
> req->data[0] = FIELD_PREP(MCS_TCAM0_MAC_DA_MASK, mac_da);
> - req->mask[0] = ~0ULL;
> req->mask[0] = ~MCS_TCAM0_MAC_DA_MASK;
>
> req->data[1] = FIELD_PREP(MCS_TCAM1_ETYPE_MASK, ETH_P_MACSEC);
> - req->mask[1] = ~0ULL;
> req->mask[1] &= ~MCS_TCAM1_ETYPE_MASK;
>
As i said to another patch, you need to argue why you change is
correct. If you have no idea what the correct fix is, you should
simply report the issue to the Maintainer, and look at the git history
for these lines and see who added them, and ask them what is the
correct fix.
Andrew
next prev parent reply other threads:[~2024-12-21 15:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-21 3:44 [PATCH 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and dead code Ariel Otilibili
2024-12-21 3:44 ` [PATCH 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Ariel Otilibili
2024-12-21 15:17 ` Andrew Lunn [this message]
2024-12-21 3:44 ` [PATCH 2/3] usb/cx231xx: Remove unused value Ariel Otilibili
2024-12-21 3:44 ` [PATCH 3/3] net/can/dev: Remove dead code Ariel Otilibili
2024-12-21 15:20 ` Andrew Lunn
2024-12-21 11:06 ` [PATCH v2 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and " Ariel Otilibili
2024-12-21 11:06 ` [PATCH v2 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Ariel Otilibili
2024-12-21 11:06 ` [PATCH v2 2/3] usb/cx231xx: Remove unused value Ariel Otilibili
2025-01-06 14:07 ` Hans Verkuil
2024-12-21 11:06 ` [PATCH v2 3/3] net/can/dev: Remove dead code Ariel Otilibili
2024-12-22 16:37 ` Marc Kleine-Budde
2024-12-22 17:27 ` Ariel Otilibili-Anieli
2024-12-21 15:22 ` [PATCH v2 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and " Andrew Lunn
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=e99c8ff0-4b72-400b-a530-6808adbd5d1a@lunn.ch \
--to=andrew@lunn.ch \
--cc=andrew+netdev@lunn.ch \
--cc=ariel.otilibili-anieli@eurecom.fr \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=zajec5@gmail.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