diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-11-28 10:27:34 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:34 +0100 |
commit | 850ab092bfdcebe637e53733cddcc329a4a035b8 (patch) | |
tree | c25ea6ef4023f2b41b46a6c2e7d8c804e0785855 | |
parent | dd7ce61d2e9ade59ee4c370927971054e676bd04 (diff) | |
download | tip-850ab092bfdcebe637e53733cddcc329a4a035b8.tar.gz |
headers/deps: net: Move skb_mark_not_on_list() from <linux/skbuff_api.h> to <linux/skbuff_types.h>
This is a simple primitive with no extra dependencies - move it over to
<linux/skbuff_types.h> to allow <net/ip.h> use it without the heavy
dependencies of <linux/skbuff_api.h>.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/skbuff_api.h | 5 | ||||
-rw-r--r-- | include/linux/skbuff_types.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/skbuff_api.h b/include/linux/skbuff_api.h index 05c90b76315880..40ed63ad8ebab6 100644 --- a/include/linux/skbuff_api.h +++ b/include/linux/skbuff_api.h @@ -584,11 +584,6 @@ static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy_success) } } -static inline void skb_mark_not_on_list(struct sk_buff *skb) -{ - skb->next = NULL; -} - /* Iterate through singly-linked GSO fragments of an skb. */ #define skb_list_walk_safe(first, skb, next_skb) \ for ((skb) = (first), (next_skb) = (skb) ? (skb)->next : NULL; (skb); \ diff --git a/include/linux/skbuff_types.h b/include/linux/skbuff_types.h index 9f413390728a98..cb52308c94e4d5 100644 --- a/include/linux/skbuff_types.h +++ b/include/linux/skbuff_types.h @@ -961,6 +961,11 @@ static inline unsigned char *skb_inner_network_header(const struct sk_buff *skb) return skb->head + skb->inner_network_header; } +static inline void skb_mark_not_on_list(struct sk_buff *skb) +{ + skb->next = NULL; +} + #endif /* __KERNEL__ */ #endif /* _LINUX_SKBUFF_TYPES_H */ |