summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorWei Fang <wei.fang@nxp.com>2024-10-11 11:01:03 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-22 15:46:19 +0200
commit75150ba93ddaccceff80ea3fd9efa79e07aa1fb1 (patch)
tree7ece4d3d1edbc5d072eecf723607b254c9bc013a /kernel
parent760a7c9695c08661c176b7b729882375a23f9e3d (diff)
downloadlinux-75150ba93ddaccceff80ea3fd9efa79e07aa1fb1.tar.gz
linux-75150ba93ddaccceff80ea3fd9efa79e07aa1fb1.tar.bz2
linux-75150ba93ddaccceff80ea3fd9efa79e07aa1fb1.zip
net: enetc: add missing static descriptor and inline keyword
commit 1d7b2ce43d2c22a21dadaf689cb36a69570346a6 upstream. 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. Fixes: 6517798dd343 ("enetc: Make MDIO accessors more generic and export to include/linux/fsl") Cc: stable@vger.kernel.org Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202410102136.jQHZOcS4-lkp@intel.com/ Signed-off-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20241011030103.392362-1-wei.fang@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions