netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] tipc: explicitly include core.h in addr.h
@ 2014-02-04 14:49 andreas.bofjall
  2014-02-05  4:33 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: andreas.bofjall @ 2014-02-04 14:49 UTC (permalink / raw)
  To: netdev; +Cc: tipc-discussion

From: Andreas Bofjäll <andreas.bofjall@ericsson.com>

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.

Signed-off-by: Andreas Bofjäll <andreas.bofjall@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
---
 net/tipc/addr.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/tipc/addr.h b/net/tipc/addr.h
index 60b00ab..a74acf9 100644
--- a/net/tipc/addr.h
+++ b/net/tipc/addr.h
@@ -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
 
-- 
1.7.9.5


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
tipc-discussion mailing list
tipc-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] tipc: explicitly include core.h in addr.h
  2014-02-04 14:49 andreas.bofjall
@ 2014-02-05  4:33 ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-02-05  4:33 UTC (permalink / raw)
  To: andreas.bofjall; +Cc: netdev, tipc-discussion, maloy

From: <andreas.bofjall@ericsson.com>
Date: Tue, 4 Feb 2014 15:49:21 +0100

> From: Andreas Bofjäll <andreas.bofjall@ericsson.com>
> 
> 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.
> 
> Signed-off-by: Andreas Bofjäll <andreas.bofjall@ericsson.com>
> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>

The net-next tree is not open at this time.  Please resubmit this
when the net-next tree opens back up.

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH net-next] tipc: explicitly include core.h in addr.h
@ 2014-02-12  8:34 andreas.bofjall
  2014-02-13 22:49 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: andreas.bofjall @ 2014-02-12  8:34 UTC (permalink / raw)
  To: netdev; +Cc: tipc-discussion, maloy, Andreas Bofjäll

From: Andreas Bofjäll <andreas.bofjall@ericsson.com>

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.

Signed-off-by: Andreas Bofjäll <andreas.bofjall@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
---
 net/tipc/addr.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/tipc/addr.h b/net/tipc/addr.h
index 60b00ab..a74acf9 100644
--- a/net/tipc/addr.h
+++ b/net/tipc/addr.h
@@ -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
 
-- 
1.8.5.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] tipc: explicitly include core.h in addr.h
  2014-02-12  8:34 [PATCH net-next] tipc: explicitly include core.h in addr.h andreas.bofjall
@ 2014-02-13 22:49 ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-02-13 22:49 UTC (permalink / raw)
  To: andreas.bofjall; +Cc: netdev, tipc-discussion, maloy

From: <andreas.bofjall@ericsson.com>
Date: Wed, 12 Feb 2014 09:34:18 +0100

> From: Andreas Bofjäll <andreas.bofjall@ericsson.com>
> 
> 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.
> 
> Signed-off-by: Andreas Bofjäll <andreas.bofjall@ericsson.com>
> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>

Applied, thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-13 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12  8:34 [PATCH net-next] tipc: explicitly include core.h in addr.h andreas.bofjall
2014-02-13 22:49 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2014-02-04 14:49 andreas.bofjall
2014-02-05  4:33 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).