All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 1/1] psample: Add a fwd declaration for skbuff
@ 2021-08-08  6:52 Roi Dayan
  2021-08-09 22:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Roi Dayan @ 2021-08-08  6:52 UTC (permalink / raw)
  To: netdev; +Cc: Roi Dayan, Jiri Pirko, Jakub Kicinski, David S. Miller

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(+)

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,
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net 1/1] psample: Add a fwd declaration for skbuff
  2021-08-08  6:52 [PATCH net 1/1] psample: Add a fwd declaration for skbuff Roi Dayan
@ 2021-08-09 22:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-08-09 22:40 UTC (permalink / raw)
  To: Roi Dayan; +Cc: netdev, jiri, kuba, davem

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-09 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-08  6:52 [PATCH net 1/1] psample: Add a fwd declaration for skbuff Roi Dayan
2021-08-09 22:40 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.