Re: [PATCH] stmmac: dwmac-loongson: change loongson_dwmac_driver from global to static
From: patchwork-bot+netdevbpf
Date: Mon Apr 04 2022 - 08:00:31 EST
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:
On Sun, 3 Apr 2022 10:02:02 -0400 you wrote:
> Smatch reports this issue
> dwmac-loongson.c:208:19: warning: symbol
> 'loongson_dwmac_driver' was not declared.
> Should it be static?
>
> loongson_dwmac_driver is only used in dwmac-loongson.c.
> File scope variables used only in one file should
> be static. Change loongson_dwmac_driver's
> storage-class-specifier from global to static.
>
> [...]
Here is the summary with links:
- stmmac: dwmac-loongson: change loongson_dwmac_driver from global to static
https://git.kernel.org/netdev/net/c/2baed4f9b085
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html