Skip to contentSkip to conversation

net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definition

PATCH Applied Zijun Hu 3 participants 3 messages Apr 16, 2025 – Apr 18, 2025

Subsystems (3)
lore
Share & tools
lore

Zijun Hu

author
#0 lore raw

PATCH 1/1 net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definition

From: Zijun Hu <[email protected]>

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

---
 include/net/sock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/sock.h +2 -2
index 694f954258d4372ed33d6eb298c4247519df635c..778e550658a73d9ce3016233bb9062b0f5011e0a 100644
@@ -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))

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

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>
#2 lore raw
In reply to Zijun Hu
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Wed, 16 Apr 2025 19:56:23 +0800 you wrote:

From: Zijun Hu <[email protected]>

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

---
 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html