diff options
author | Roi Dayan <roid@nvidia.com> | 2021-08-08 09:52:42 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-08-26 08:36:38 -0400 |
commit | 5518a26ef281ac4f38736723c26a502335ca6a97 (patch) | |
tree | e89d67e1835ed91031d9549fa15b555c83d26fe3 /include | |
parent | 0bc8d39791e65d2812746b6a07df4e1d482b7e08 (diff) | |
download | linux-stable-5518a26ef281ac4f38736723c26a502335ca6a97.tar.gz linux-stable-5518a26ef281ac4f38736723c26a502335ca6a97.tar.bz2 linux-stable-5518a26ef281ac4f38736723c26a502335ca6a97.zip |
psample: Add a fwd declaration for skbuff
[ Upstream commit beb7f2de5728b0bd2140a652fa51f6ad85d159f7 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/psample.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/psample.h b/include/net/psample.h index 94cb37a7bf75..796f01e5635d 100644 --- a/include/net/psample.h +++ b/include/net/psample.h @@ -18,6 +18,8 @@ struct psample_group { struct psample_group *psample_group_get(struct net *net, u32 group_num); 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, |