Skip to content

Commit 4323add

Browse files
author
Per Liden
committed
[TIPC] Avoid polluting the global namespace
This patch adds a tipc_ prefix to all externally visible symbols. Signed-off-by: Per Liden <per.liden@ericsson.com>
1 parent 1e63e68 commit 4323add

44 files changed

Lines changed: 1654 additions & 1673 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎net/tipc/addr.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ u32 tipc_get_addr(void)
4747
}
4848

4949
/**
50-
* addr_domain_valid - validates a network domain address
50+
* tipc_addr_domain_valid - validates a network domain address
5151
*
5252
* Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, and <0.0.0>,
5353
* where Z, C, and N are non-zero and do not exceed the configured limits.
5454
*
5555
* Returns 1 if domain address is valid, otherwise 0
5656
*/
5757

58-
int addr_domain_valid(u32 addr)
58+
int tipc_addr_domain_valid(u32 addr)
5959
{
6060
u32 n = tipc_node(addr);
6161
u32 c = tipc_cluster(addr);
@@ -79,16 +79,16 @@ int addr_domain_valid(u32 addr)
7979
}
8080

8181
/**
82-
* addr_node_valid - validates a proposed network address for this node
82+
* tipc_addr_node_valid - validates a proposed network address for this node
8383
*
8484
* Accepts <Z.C.N>, where Z, C, and N are non-zero and do not exceed
8585
* the configured limits.
8686
*
8787
* Returns 1 if address can be used, otherwise 0
8888
*/
8989

90-
int addr_node_valid(u32 addr)
90+
int tipc_addr_node_valid(u32 addr)
9191
{
92-
return (addr_domain_valid(addr) && tipc_node(addr));
92+
return (tipc_addr_domain_valid(addr) && tipc_node(addr));
9393
}
9494

‎net/tipc/addr.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static inline char *addr_string_fill(char *string, u32 addr)
122122
return string;
123123
}
124124

125-
int addr_domain_valid(u32);
126-
int addr_node_valid(u32 addr);
125+
int tipc_addr_domain_valid(u32);
126+
int tipc_addr_node_valid(u32 addr);
127127

128128
#endif

0 commit comments

Comments
 (0)