Skip to contentSkip to conversation

psample: Add a fwd declaration for skbuff

PATCH Applied Roi Dayan 2 participants 2 messages Aug 8, 2021 – Aug 9, 2021

Subsystems (3)
lore
Share & tools
lore

Roi Dayan

author
#0 lore raw

PATCH 1/1 psample: Add a fwd declaration for skbuff

Without this there is a warning if source files include psample.h before skbuff.h or doesn't include it at all.

Fixes 6ae0a6286171 ("net: Introduce psample, a new genetlink channel for packet sampling")
---
 include/net/psample.h | 2 ++
 1 file changed, 2 insertions(+)
include/net/psample.h +2 -0
index e328c5127757..0509d2d6be67 100644
@@ -31,6 +31,8 @@ struct psample_group *psample_group_get(struct net *net, u32 group_num);
 void psample_group_take(struct psample_group *group);
 void psample_group_put(struct psample_group *group);
 
+struct sk_buff;
+
 #if IS_ENABLED(CONFIG_PSAMPLE)
 
 void psample_sample_packet(struct psample_group *group, struct sk_buff *skb,
Signature · 1 line
2.26.3
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 8 lines · On Sun, 8 Aug 2021 09:52:42 +0300 you wrote:

Without this there is a warning if source files include psample.h before skbuff.h or doesn't include it at all.

Fixes 6ae0a6286171 ("net: Introduce psample, a new genetlink channel for packet sampling")
---
 include/net/psample.h | 2 ++
 1 file changed, 2 insertions(+)

Here is the summary with links:
- [net,1/1] psample: Add a fwd declaration for skbuff

    https://git.kernel.org/netdev/net/c/beb7f2de5728

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html