Skip to contentSkip to conversation

tipc: explicitly include core.h in addr.h

PATCH Applied [email protected] 2 participants 2 messages Feb 12, 2014 – Feb 13, 2014

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

PATCH 1/1 tipc: explicitly include core.h in addr.h

From: Andreas Bofjäll <[email protected]>

The inline functions in addr.h uses tipc_own_addr which is exported by core.h, but addr.h never actually includes it. It works because it is explicitly included where this is used, but it looks a bit strange.

Include core.h in addr.h explicitly to make the dependency clearer.

---
 net/tipc/addr.h | 2 ++
 1 file changed, 2 insertions(+)
net/tipc/addr.h +2 -0
index 60b00ab..a74acf9 100644
@@ -37,6 +37,8 @@
 #ifndef _TIPC_ADDR_H
 #define _TIPC_ADDR_H
 
+#include "core.h"
+
 #define TIPC_ZONE_MASK		0xff000000u
 #define TIPC_CLUSTER_MASK	0xfffff000u
 
Signature · 1 line
1.8.5.2
maintainer Applied
#1 lore raw

From: <[email protected]>
Date: Wed, 12 Feb 2014 09:34:18 +0100

Quoted 10 lines

From: Andreas Bofjäll <[email protected]>

The inline functions in addr.h uses tipc_own_addr which is exported by core.h, but addr.h never actually includes it. It works because it is explicitly included where this is used, but it looks a bit strange.

Include core.h in addr.h explicitly to make the dependency clearer.

Applied, thank you.