[PATCH net] net: enetc: add missing static descriptor and inline keyword
    patchwork-bot+netdevbpf at kernel.org 
    patchwork-bot+netdevbpf at kernel.org
       
    Sat Oct 12 10:10:39 AEDT 2024
    
    
  
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba at kernel.org>:
On Fri, 11 Oct 2024 11:01:03 +0800 you wrote:
> Fix the build warnings when CONFIG_FSL_ENETC_MDIO is not enabled.
> The detailed warnings are shown as follows.
> 
> include/linux/fsl/enetc_mdio.h:62:18: warning: no previous prototype for function 'enetc_hw_alloc' [-Wmissing-prototypes]
>       62 | struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem *port_regs)
>          |                  ^
> include/linux/fsl/enetc_mdio.h:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>       62 | struct enetc_hw *enetc_hw_alloc(struct device *dev, void __iomem *port_regs)
>          | ^
>          | static
> 8 warnings generated.
> 
> [...]
Here is the summary with links:
  - [net] net: enetc: add missing static descriptor and inline keyword
    https://git.kernel.org/netdev/net/c/1d7b2ce43d2c
You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
    
    
More information about the Linuxppc-dev
mailing list