From: Jakub Kicinski <kuba@kernel.org>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jon Hunter <jonathanh@nvidia.com>,
linux-arm-kernel@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Prabhakar <prabhakar.csengg@gmail.com>,
Thierry Reding <treding@nvidia.com>
Subject: Re: [PATCH net-next 2/2] net: stmmac: dwc-qos: use stmmac_pltfr_find_clk()
Date: Tue, 8 Apr 2025 12:37:55 -0700 [thread overview]
Message-ID: <20250408123755.1077e29b@kernel.org> (raw)
In-Reply-To: <E1u1rMv-0013ON-TJ@rmk-PC.armlinux.org.uk>
On Mon, 07 Apr 2025 19:38:49 +0100 Russell King (Oracle) wrote:
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---
> .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 14 ++------------
> 1 file changed, 2 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
> index cd431f84f34f..f5c68e3b4354 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
> @@ -34,16 +34,6 @@ struct tegra_eqos {
> struct gpio_desc *reset;
> };
>
> -static struct clk *dwc_eth_find_clk(struct plat_stmmacenet_data *plat_dat,
> - const char *name)
> -{
> - for (int i = 0; i < plat_dat->num_clks; i++)
> - if (strcmp(plat_dat->clks[i].id, name) == 0)
> - return plat_dat->clks[i].clk;
> -
> - return NULL;
> -}
Missed one user?
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:355:25: error: call to undeclared function 'dwc_eth_find_clk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
355 | plat_dat->stmmac_clk = dwc_eth_find_clk(plat_dat,
| ^
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:355:23: error: incompatible integer to pointer conversion assigning to 'struct clk *' from 'int' [-Wint-conversion]
355 | plat_dat->stmmac_clk = dwc_eth_find_clk(plat_dat,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
356 | data->stmmac_clk_name);
| ~~~~~~~~~~~~~~~~~~~~~~
--
pw-bot: cr
prev parent reply other threads:[~2025-04-08 19:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 18:38 [PATCH net-next 0/2] net: stmmac: stmmac_pltfr_find_clk() Russell King (Oracle)
2025-04-07 18:38 ` [PATCH net-next 1/2] net: stmmac: provide stmmac_pltfr_find_clk() Russell King (Oracle)
2025-04-07 19:29 ` Lad, Prabhakar
2025-04-08 13:03 ` Andrew Lunn
2025-04-07 18:38 ` [PATCH net-next 2/2] net: stmmac: dwc-qos: use stmmac_pltfr_find_clk() Russell King (Oracle)
2025-04-07 19:33 ` Lad, Prabhakar
2025-04-08 13:04 ` Andrew Lunn
2025-04-08 19:37 ` Jakub Kicinski [this message]
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=20250408123755.1077e29b@kernel.org \
--to=kuba@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=prabhakar.csengg@gmail.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=treding@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 NNTP newsgroup(s).