Skip to content

Commit 6c08670

Browse files
Russell Kingdavem330
authored andcommitted
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: 727b366 ("net: sfp: rework upstream interface") Signed-off-by: Russell King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b8371b commit 6c08670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/sfp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ static inline struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
563563
return NULL;
564564
}
565565

566-
static int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
567-
const struct sfp_upstream_ops *ops)
566+
static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
567+
const struct sfp_upstream_ops *ops)
568568
{
569569
return 0;
570570
}

0 commit comments

Comments
 (0)