diff mbox series

[net-next] net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definition

Message ID 20250416-fix_net-v1-1-d544c9f3f169@quicinc.com (mailing list archive)
State Accepted
Commit 2b905deb43ea0b67fa8448fc9c15dacb068f45b6
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definition | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next, async
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 27 this patch: 27
netdev/build_tools success Errors and warnings before: 26 (+2) this patch: 26 (+2)
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 35 this patch: 35
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 2605 this patch: 2605
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 10 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 4 this patch: 4
netdev/source_inline success Was 0 now: 0
netdev/contest fail net-next-2025-04-17--21-00 (tests: 916)

Commit Message

Zijun Hu April 16, 2025, 11:56 a.m. UTC
From: Zijun Hu <quic_zijuhu@quicinc.com>

For macro SOCK_SKB_CB_OFFSET definition, Delete the outer () duplicated.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
---
 include/net/sock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


---
base-commit: ba5560e53dacefddf8c47802b7a30b2e53afdcb8
change-id: 20250412-fix_net-7aad35507992

Best regards,

Comments

Kuniyuki Iwashima April 16, 2025, 7:43 p.m. UTC | #1
From: Zijun Hu <zijun_hu@icloud.com>
Date: Wed, 16 Apr 2025 19:56:23 +0800
> From: Zijun Hu <quic_zijuhu@quicinc.com>
> 
> For macro SOCK_SKB_CB_OFFSET definition, Delete the outer () duplicated.
> 
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>

Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
patchwork-bot+netdevbpf@kernel.org April 18, 2025, 2:51 a.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 16 Apr 2025 19:56:23 +0800 you wrote:
> From: Zijun Hu <quic_zijuhu@quicinc.com>
> 
> For macro SOCK_SKB_CB_OFFSET definition, Delete the outer () duplicated.
> 
> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
> ---
>  include/net/sock.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> [...]

Here is the summary with links:
  - [net-next] net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definition
    https://git.kernel.org/netdev/net-next/c/2b905deb43ea

You are awesome, thank you!
diff mbox series

Patch

diff --git a/include/net/sock.h b/include/net/sock.h
index 694f954258d4372ed33d6eb298c4247519df635c..778e550658a73d9ce3016233bb9062b0f5011e0a 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -2605,8 +2605,8 @@  struct sock_skb_cb {
  * using skb->cb[] would keep using it directly and utilize its
  * alignment guarantee.
  */
-#define SOCK_SKB_CB_OFFSET ((sizeof_field(struct sk_buff, cb) - \
-			    sizeof(struct sock_skb_cb)))
+#define SOCK_SKB_CB_OFFSET (sizeof_field(struct sk_buff, cb) - \
+			    sizeof(struct sock_skb_cb))
 
 #define SOCK_SKB_CB(__skb) ((struct sock_skb_cb *)((__skb)->cb + \
 			    SOCK_SKB_CB_OFFSET))