Message ID | 20210127123302.29842-1-dong.menglong@zte.com.cn (mailing list archive) |
---|---|
State | Accepted |
Commit | 8c22475148a8d3222be712bd02a74d7279d50daf |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: packet: make pkt_sk() inline | expand |
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-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 7 of 7 maintainers |
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: 2 this patch: 2 |
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: 2 this patch: 2 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
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
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; }