Skip to contentSkip to conversation

net: sfp: fix sfp_bus_add_upstream() warning

PATCH Applied Russell King 3 participants 3 messages Nov 12, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sfp: fix sfp_bus_add_upstream() warning

When building with SFP disabled, the stub for sfp_bus_add_upstream() missed "inline". Add it.

Fixes 727b3668b730 ("net: sfp: rework upstream interface")
---
 include/linux/sfp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/sfp.h +2 -2
index c8464de7cff5..3b35efd85bb1 100644
@@ -563,8 +563,8 @@ static inline struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
 	return NULL;
 }
 
-static int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
-				const struct sfp_upstream_ops *ops)
+static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
+				       const struct sfp_upstream_ops *ops)
 {
 	return 0;
 }
Signature · 1 line
2.20.1