Skip to content

Commit 526dd6d

Browse files
idoschdavem330
authored andcommitted
devlink: Move private netlink flags to C file
The flags are not used outside of the C file so move them there. Suggested-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4dce97b commit 526dd6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

net/devlink/devl_internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ int devlink_rel_devlink_handle_put(struct sk_buff *msg, struct devlink *devlink,
111111
bool *msg_updated);
112112

113113
/* Netlink */
114-
#define DEVLINK_NL_FLAG_NEED_PORT BIT(0)
115-
#define DEVLINK_NL_FLAG_NEED_DEVLINK_OR_PORT BIT(1)
116-
117114
enum devlink_multicast_groups {
118115
DEVLINK_MCGRP_CONFIG,
119116
};

net/devlink/netlink.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
#include "devl_internal.h"
1111

12+
#define DEVLINK_NL_FLAG_NEED_PORT BIT(0)
13+
#define DEVLINK_NL_FLAG_NEED_DEVLINK_OR_PORT BIT(1)
14+
1215
static const struct genl_multicast_group devlink_nl_mcgrps[] = {
1316
[DEVLINK_MCGRP_CONFIG] = { .name = DEVLINK_GENL_MCGRP_CONFIG_NAME },
1417
};

0 commit comments

Comments
 (0)