Re: [PATCH net-next] net: packet: make pkt_sk() inline

2021-01-29 Thread patchwork-bot+netdevbpf
Hello:

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

On Wed, 27 Jan 2021 04:33:02 -0800 you wrote:
> From: Menglong Dong 
> 
> It's better make 'pkt_sk()' inline here, as non-inline function
> shouldn't occur in headers. Besides, this function is simple
> enough to be inline.
> 
> Signed-off-by: Menglong Dong 
> 
> [...]

Here is the summary with links:
  - [net-next] net: packet: make pkt_sk() inline
https://git.kernel.org/netdev/net-next/c/8c22475148a8

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html




[PATCH net-next] net: packet: make pkt_sk() inline

2021-01-27 Thread menglong8 . dong
From: Menglong Dong 

It's better make 'pkt_sk()' inline here, as non-inline function
shouldn't occur in headers. Besides, this function is simple
enough to be inline.

Signed-off-by: Menglong Dong 
---
 net/packet/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/packet/internal.h b/net/packet/internal.h
index baafc3f3fa25..5f61e59ebbff 100644
--- a/net/packet/internal.h
+++ b/net/packet/internal.h
@@ -139,7 +139,7 @@ struct packet_sock {
atomic_ttp_drops cacheline_aligned_in_smp;
 };
 
-static struct packet_sock *pkt_sk(struct sock *sk)
+static inline struct packet_sock *pkt_sk(struct sock *sk)
 {
return (struct packet_sock *)sk;
 }
-- 
2.25.1