]> Git Repo - linux.git/commitdiff
psample: Add a fwd declaration for skbuff
authorRoi Dayan <[email protected]>
Sun, 8 Aug 2021 06:52:42 +0000 (09:52 +0300)
committerJakub Kicinski <[email protected]>
Mon, 9 Aug 2021 22:34:21 +0000 (15:34 -0700)
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")
Signed-off-by: Roi Dayan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
include/net/psample.h

index e328c5127757178eff08e1872dd1c9b73ab1a7eb..0509d2d6be676638e35cae3c6b4325524d693c25 100644 (file)
@@ -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,
This page took 0.054034 seconds and 4 git commands to generate.