Skip to content

Commit

Permalink
devlink: Move devlink_info_req struct to be local
Browse files Browse the repository at this point in the history
As all users of the struct devlink_info_req are already in dev.c, move
this struct from devl_internal.c to be local in dev.c.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Moshe Shemesh authored and Jakub Kicinski committed Feb 4, 2023
1 parent a13aab6 commit ec4a0ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 8 additions & 0 deletions net/devlink/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
#include <net/sock.h>
#include "devl_internal.h"

struct devlink_info_req {
struct sk_buff *msg;
void (*version_cb)(const char *version_name,
enum devlink_info_version_type version_type,
void *version_cb_priv);
void *version_cb_priv;
};

struct devlink_reload_combination {
enum devlink_reload_action action;
enum devlink_reload_limit limit;
Expand Down
9 changes: 0 additions & 9 deletions net/devlink/devl_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@ static inline bool devlink_reload_supported(const struct devlink_ops *ops)
return ops->reload_down && ops->reload_up;
}

/* Dev info */
struct devlink_info_req {
struct sk_buff *msg;
void (*version_cb)(const char *version_name,
enum devlink_info_version_type version_type,
void *version_cb_priv);
void *version_cb_priv;
};

/* Resources */
struct devlink_resource;
int devlink_resources_validate(struct devlink *devlink,
Expand Down

0 comments on commit ec4a0ce

Please sign in to comment.