]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: narrow down exposure of struct tipc_node
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 19 Nov 2015 19:30:45 +0000 (14:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 19:06:10 +0000 (14:06 -0500)
commit4e3835ec538694f21b06b033b1e99d55d58c8dad
tree33ceb909dd758e3b96d48bb5fc8c3e0211c42555
parent7652bc74efe5551d1a72a84ab523d802676e5a13
tipc: narrow down exposure of struct tipc_node

In our effort to have less code and include dependencies between
entities such as node, link and bearer, we try to narrow down
the exposed interface towards the node as much as possible.

In this commit, we move the definition of struct tipc_node, along
with many of its associated function declarations, from node.h to
node.c. We also move some function definitions from link.c and
name_distr.c to node.c, since they access fields in struct tipc_node
that should not be externally visible. The moved functions are renamed
according to new location, and made static whenever possible.

There are no functional changes in this commit.

Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.h
net/tipc/link.c
net/tipc/link.h
net/tipc/netlink.c
net/tipc/netlink_compat.c
net/tipc/node.c
net/tipc/node.h