summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2018-03-23 20:47:42 +0100
committerDavid S. Miller <davem@davemloft.net>2018-03-26 03:21:43 +0200
commitda18ab32d78b6414267d3e5c8c9b5ab34a6d3321 (patch)
tree65569720a96873f7b89afcdad8e227297f6c0970 /net/tipc
parentibmvnic: Potential NULL dereference in clean_one_tx_pool() (diff)
downloadlinux-da18ab32d78b6414267d3e5c8c9b5ab34a6d3321.tar.xz
linux-da18ab32d78b6414267d3e5c8c9b5ab34a6d3321.zip
tipc: tipc_disc_addr_trial_msg() can be static
Fixes: 25b0b9c4e835 ("tipc: handle collisions of 32-bit node address hash values") Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Jon Maloy jon.maloy@ericsson.com Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/discover.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c
index e7655736abed..9f666e0650e2 100644
--- a/net/tipc/discover.c
+++ b/net/tipc/discover.c
@@ -134,13 +134,13 @@ static void disc_dupl_alert(struct tipc_bearer *b, u32 node_addr,
/* tipc_disc_addr_trial(): - handle an address uniqueness trial from peer
*/
-bool tipc_disc_addr_trial_msg(struct tipc_discoverer *d,
- struct tipc_media_addr *maddr,
- struct tipc_bearer *b,
- u32 dst, u32 src,
- u32 sugg_addr,
- u8 *peer_id,
- int mtyp)
+static bool tipc_disc_addr_trial_msg(struct tipc_discoverer *d,
+ struct tipc_media_addr *maddr,
+ struct tipc_bearer *b,
+ u32 dst, u32 src,
+ u32 sugg_addr,
+ u8 *peer_id,
+ int mtyp)
{
struct net *net = d->net;
struct tipc_net *tn = tipc_net(net);