Skip to contentSkip to conversation

sock: fix comment location

PATCH In review Jεan Sacren 2 participants 3 messages May 3, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sock: fix comment location

From: Jean Sacren <[email protected]>

The block of comment is for 'sk_incoming_cpu' rather than 'sk_txhash'. Therefore, move it above "u16 sk_incoming_cpu;" where it belongs.

---
 include/net/sock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/sock.h +1 -1
index 3a4898ec8c67..42a8670e5baf 100644
@@ -352,11 +352,11 @@ struct sock {
 #ifdef CONFIG_RPS
 	__u32			sk_rxhash;
 #endif
-	u16			sk_incoming_cpu;
 	/* 16bit hole
 	 * Warned : sk_incoming_cpu can be set from softirq,
 	 * Do not use this hole without fully understanding possible issues.
 	 */
+	u16			sk_incoming_cpu;
 
 	__u32			sk_txhash;
 #ifdef CONFIG_NET_RX_BUSY_POLL
#1 lore raw
Quoted 4 lines · Jεan Sacren

From: Jean Sacren <[email protected]>

The block of comment is for 'sk_incoming_cpu' rather than 'sk_txhash'. Therefore, move it above "u16 sk_incoming_cpu;" where it belongs.

comment is at the right place.

include/net/sock.h struct sock { · line 359

Quoted 9 lines
include/net/sock.h +1 -1
-	u16			sk_incoming_cpu;
 	/* 16bit hole
 	 * Warned : sk_incoming_cpu can be set from softirq,
 	 * Do not use this hole without fully understanding possible issues.
 	 */
+	u16			sk_incoming_cpu;

This hole is between sk_incoming_cpu and sk_txhash.

#2 lore raw

From: Florian Westphal <[email protected]>
Date: Sun, 03 May 2015 23:05:34 +0200

Quoted 9 lines
Quoted 4 lines · Jεan Sacren

From: Jean Sacren <[email protected]>

The block of comment is for 'sk_incoming_cpu' rather than 'sk_txhash'. Therefore, move it above "u16 sk_incoming_cpu;" where it belongs.

comment is at the right place.

Quoted 11 lines

include/net/sock.h struct sock { · line 359

Quoted 9 lines
include/net/sock.h +1 -1
-	u16			sk_incoming_cpu;
 	/* 16bit hole
 	 * Warned : sk_incoming_cpu can be set from softirq,
 	 * Do not use this hole without fully understanding possible issues.
 	 */
+	u16			sk_incoming_cpu;

This hole is between sk_incoming_cpu and sk_txhash.

I'm so sorry. Thank you for teaching me. I did wish there were an empty line below "u16 sk_incoming_cpu;"