mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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: 727b3668b7 ("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>
This commit is contained in:
committed by
David S. Miller
parent
8b8371b5ba
commit
6c08670223
@@ -563,8 +563,8 @@ static inline struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
|
static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
|
||||||
const struct sfp_upstream_ops *ops)
|
const struct sfp_upstream_ops *ops)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user