diff mbox series

[net,1/1] psample: Add a fwd declaration for skbuff

Message ID 20210808065242.1522535-1-roid@nvidia.com (mailing list archive)
State Accepted
Commit beb7f2de5728b0bd2140a652fa51f6ad85d159f7
Delegated to: Netdev Maintainers
Headers show
Series [net,1/1] psample: Add a fwd declaration for skbuff | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Clearly marked for net
netdev/subject_prefix success Link
netdev/cc_maintainers fail 4 blamed authors not CCed: simon.horman@netronome.com yotam.gi@gmail.com jhs@mojatatu.com jiri@mellanox.com; 4 maintainers not CCed: simon.horman@netronome.com yotam.gi@gmail.com jhs@mojatatu.com jiri@mellanox.com
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/header_inline success Link

Commit Message

Roi Dayan Aug. 8, 2021, 6:52 a.m. UTC
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>
---
 include/net/psample.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 9, 2021, 10:40 p.m. UTC | #1
Hello:

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

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")
> Signed-off-by: Roi Dayan <roid@nvidia.com>
> ---
>  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
diff mbox series

Patch

diff --git a/include/net/psample.h b/include/net/psample.h
index e328c5127757..0509d2d6be67 100644
--- a/include/net/psample.h
+++ b/include/net/psample.h
@@ -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,