From: Jakub Kicinski <kuba@kernel•org>
To: Samin Guo <samin.guo@starfivetech•com>
Cc: <linux-kernel@vger•kernel.org>, <linux-riscv@lists•infradead.org>,
<devicetree@vger•kernel.org>, <netdev@vger•kernel.org>,
"David S . Miller" <davem@davemloft•net>,
Eric Dumazet <edumazet@google•com>,
Paolo Abeni <pabeni@redhat•com>, Rob Herring <robh+dt@kernel•org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro•org>,
Emil Renner Berthing <kernel@esmil•dk>,
Jose Abreu <joabreu@synopsys•com>,
Richard Cochran <richardcochran@gmail•com>,
Conor Dooley <conor@kernel•org>,
Paul Walmsley <paul.walmsley@sifive•com>,
Palmer Dabbelt <palmer@dabbelt•com>,
Albert Ou <aou@eecs•berkeley.edu>, Andrew Lunn <andrew@lunn•ch>,
Heiner Kallweit <hkallweit1@gmail•com>,
Peter Geis <pgwipeout@gmail•com>,
Yanhong Wang <yanhong.wang@starfivetech•com>,
Tommaso Merciai <tomm.merciai@gmail•com>
Subject: Re: [net-next v9 5/6] net: stmmac: Add glue layer for StarFive JH7110 SoC
Date: Tue, 28 Mar 2023 19:17:16 -0700 [thread overview]
Message-ID: <20230328191716.18a302a1@kernel.org> (raw)
In-Reply-To: <20230328062009.25454-6-samin.guo@starfivetech.com>
On Tue, 28 Mar 2023 14:20:08 +0800 Samin Guo wrote:
> This adds StarFive dwmac driver support on the StarFive JH7110 SoC.
>
> Tested-by: Tommaso Merciai <tomm.merciai@gmail•com>
> Co-developed-by: Emil Renner Berthing <kernel@esmil•dk>
> Signed-off-by: Emil Renner Berthing <kernel@esmil•dk>
> Signed-off-by: Samin Guo <samin.guo@starfivetech•com>
Excellent, now it applies cleanly :)
Our clang build with W=1 complains that:
drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:37:2: warning: variable 'rate' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:42:36: note: uninitialized use occurs here
err = clk_set_rate(dwmac->clk_tx, rate);
^~~~
drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:24:20: note: initialize the variable 'rate' to silence this warning
unsigned long rate;
^
= 0
not sure how you prefer to fix this. Maybe return early?
next prev parent reply other threads:[~2023-03-29 2:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 6:20 [net-next v9 0/6] Add Ethernet driver for StarFive JH7110 SoC Samin Guo
2023-03-28 6:20 ` [net-next v9 1/6] dt-bindings: net: snps,dwmac: Add dwmac-5.20 version Samin Guo
2023-03-28 6:20 ` [net-next v9 2/6] net: stmmac: platform: Add snps,dwmac-5.20 IP compatible string Samin Guo
2023-03-28 6:20 ` [net-next v9 3/6] dt-bindings: net: snps,dwmac: Add 'ahb' reset/reset-name Samin Guo
2023-03-28 6:20 ` [net-next v9 4/6] dt-bindings: net: Add support StarFive dwmac Samin Guo
2023-04-05 6:34 ` Krzysztof Kozlowski
2023-04-07 1:59 ` Guo Samin
2023-03-28 6:20 ` [net-next v9 5/6] net: stmmac: Add glue layer for StarFive JH7110 SoC Samin Guo
2023-03-29 2:17 ` Jakub Kicinski [this message]
2023-03-29 2:57 ` Guo Samin
2023-03-29 6:25 ` Jakub Kicinski
2023-03-28 6:20 ` [net-next v9 6/6] net: stmmac: starfive-dmac: Add phy interface settings Samin Guo
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=20230328191716.18a302a1@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=andrew@lunn$(echo .)ch \
--cc=aou@eecs$(echo .)berkeley.edu \
--cc=conor@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=edumazet@google$(echo .)com \
--cc=hkallweit1@gmail$(echo .)com \
--cc=joabreu@synopsys$(echo .)com \
--cc=kernel@esmil$(echo .)dk \
--cc=krzysztof.kozlowski+dt@linaro$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-riscv@lists$(echo .)infradead.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=palmer@dabbelt$(echo .)com \
--cc=paul.walmsley@sifive$(echo .)com \
--cc=pgwipeout@gmail$(echo .)com \
--cc=richardcochran@gmail$(echo .)com \
--cc=robh+dt@kernel$(echo .)org \
--cc=samin.guo@starfivetech$(echo .)com \
--cc=tomm.merciai@gmail$(echo .)com \
--cc=yanhong.wang@starfivetech$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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