net: sfp: fix sfp_bus_add_upstream() warning
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 12 Nov 2019 11:35:00 +0000 (11:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 19:13:41 +0000 (11:13 -0800)
When building with SFP disabled, the stub for sfp_bus_add_upstream()
missed "inline".  Add it.

Fixes: 727b3668b730 ("net: sfp: rework upstream interface")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sfp.h

index c8464de7cff55e39ba7b5bd4c31cf97abb786dcc..3b35efd85bb1b6fa1b34e8c1558de1188c5e5916 100644 (file)
@@ -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;
 }