From: Paolo Abeni <pabeni@redhat.com>
To: Philipp Stanner <phasta@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Yanteng Si <si.yanteng@linux.dev>,
Huacai Chen <chenhuacai@kernel.org>,
Yinggang Gu <guyinggang@loongson.cn>,
Feiyang Chen <chenfeiyang@loongson.cn>
Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Philipp Stanner <pstanner@redhat.com>
Subject: Re: [PATCH v2] stmmac: Replace deprecated PCI functions
Date: Thu, 20 Feb 2025 09:59:08 +0100 [thread overview]
Message-ID: <2dba7bb6-23bb-4e05-b126-b147769ad1be@redhat.com> (raw)
In-Reply-To: <20250218132120.124038-2-phasta@kernel.org>
On 2/18/25 2:21 PM, Philipp Stanner wrote:
> @@ -520,9 +522,9 @@ static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id
> {
> struct plat_stmmacenet_data *plat;
> struct stmmac_pci_info *info;
> - struct stmmac_resources res;
> + struct stmmac_resources res = {};
I'm sorry for nit picking, but please respect the reverse christmas
tree above - what is relevant is the full line lenght.
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
> index 352b01678c22..9d45af70d8a2 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
> @@ -155,7 +155,7 @@ static int stmmac_pci_probe(struct pci_dev *pdev,
> {
> struct stmmac_pci_info *info = (struct stmmac_pci_info *)id->driver_data;
> struct plat_stmmacenet_data *plat;
> - struct stmmac_resources res;
> + struct stmmac_resources res = {};
> int i;
> int ret;
Even more nit-picking: since you are touching this code chunck, could
you please fix the variables declaration order above?
Also, please add the target tree in the subj prefix, in this case
'net-next'.
Thanks!
Paolo
next prev parent reply other threads:[~2025-02-20 8:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-18 13:21 Philipp Stanner
2025-02-18 16:13 ` Andrew Lunn
2025-02-20 8:59 ` Paolo Abeni [this message]
2025-02-21 2:01 ` Yanteng Si
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=2dba7bb6-23bb-4e05-b126-b147769ad1be@redhat.com \
--to=pabeni@redhat.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=chenfeiyang@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=guyinggang@loongson.cn \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=phasta@kernel.org \
--cc=pstanner@redhat.com \
--cc=si.yanteng@linux.dev \
/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
all inboxes | Powered by JetHome®