* [PATCH net-next] net: packet: make pkt_sk() inline
@ 2021-01-27 12:33 menglong8.dong
2021-01-30 1:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: menglong8.dong @ 2021-01-27 12:33 UTC (permalink / raw)
To: kuba
Cc: davem, willemb, dong.menglong, tannerlove, john.ogness, netdev,
linux-kernel
From: Menglong Dong <dong.menglong@zte.com.cn>
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 <dong.menglong@zte.com.cn>
---
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_t tp_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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: packet: make pkt_sk() inline
2021-01-27 12:33 [PATCH net-next] net: packet: make pkt_sk() inline menglong8.dong
@ 2021-01-30 1:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-30 1:50 UTC (permalink / raw)
To: Menglong Dong
Cc: kuba, davem, willemb, dong.menglong, tannerlove, john.ogness,
netdev, linux-kernel
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 <dong.menglong@zte.com.cn>
>
> 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 <dong.menglong@zte.com.cn>
>
> [...]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-30 1:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 12:33 [PATCH net-next] net: packet: make pkt_sk() inline menglong8.dong
2021-01-30 1:50 ` 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.