Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Link: https://lore.kernel.org/r/20210808065242.1522535-1-roid@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Roi Dayan and committed by
Jakub Kicinski
beb7f2de d09c548d

+2
+2
include/net/psample.h
··· 31 31 void psample_group_take(struct psample_group *group); 32 32 void psample_group_put(struct psample_group *group); 33 33 34 + struct sk_buff; 35 + 34 36 #if IS_ENABLED(CONFIG_PSAMPLE) 35 37 36 38 void psample_sample_packet(struct psample_group *group, struct sk_buff *skb,