aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/devlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r--include/net/devlink.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h
index a2da49dd9147..f9f7fe974652 100644
--- a/include/net/devlink.h
+++ b/include/net/devlink.h
@@ -707,6 +707,10 @@ devlink_health_reporter_priv(struct devlink_health_reporter *reporter);
707int devlink_health_report(struct devlink_health_reporter *reporter, 707int devlink_health_report(struct devlink_health_reporter *reporter,
708 const char *msg, void *priv_ctx); 708 const char *msg, void *priv_ctx);
709 709
710void devlink_compat_running_version(struct net_device *dev,
711 char *buf, size_t len);
712int devlink_compat_flash_update(struct net_device *dev, const char *file_name);
713
710#else 714#else
711 715
712static inline struct devlink *devlink_alloc(const struct devlink_ops *ops, 716static inline struct devlink *devlink_alloc(const struct devlink_ops *ops,
@@ -1190,13 +1194,7 @@ devlink_health_report(struct devlink_health_reporter *reporter,
1190{ 1194{
1191 return 0; 1195 return 0;
1192} 1196}
1193#endif
1194 1197
1195#if IS_REACHABLE(CONFIG_NET_DEVLINK)
1196void devlink_compat_running_version(struct net_device *dev,
1197 char *buf, size_t len);
1198int devlink_compat_flash_update(struct net_device *dev, const char *file_name);
1199#else
1200static inline void 1198static inline void
1201devlink_compat_running_version(struct net_device *dev, char *buf, size_t len) 1199devlink_compat_running_version(struct net_device *dev, char *buf, size_t len)
1202{ 1200{