diff options
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 10 |
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); | |||
707 | int devlink_health_report(struct devlink_health_reporter *reporter, | 707 | int devlink_health_report(struct devlink_health_reporter *reporter, |
708 | const char *msg, void *priv_ctx); | 708 | const char *msg, void *priv_ctx); |
709 | 709 | ||
710 | void devlink_compat_running_version(struct net_device *dev, | ||
711 | char *buf, size_t len); | ||
712 | int devlink_compat_flash_update(struct net_device *dev, const char *file_name); | ||
713 | |||
710 | #else | 714 | #else |
711 | 715 | ||
712 | static inline struct devlink *devlink_alloc(const struct devlink_ops *ops, | 716 | static 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) | ||
1196 | void devlink_compat_running_version(struct net_device *dev, | ||
1197 | char *buf, size_t len); | ||
1198 | int devlink_compat_flash_update(struct net_device *dev, const char *file_name); | ||
1199 | #else | ||
1200 | static inline void | 1198 | static inline void |
1201 | devlink_compat_running_version(struct net_device *dev, char *buf, size_t len) | 1199 | devlink_compat_running_version(struct net_device *dev, char *buf, size_t len) |
1202 | { | 1200 | { |