diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2010-05-11 10:30:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-13 02:02:25 -0400 |
commit | c68ca7b72017f8f52e7aed0d2a6ecfaede133b6b (patch) | |
tree | 37e428def9c1720122282efa23d18834f8060795 /net/tipc/addr.h | |
parent | 01fee256a675f6492fc6945bbb9b59640d8705d4 (diff) |
tipc: add tipc_ prefix to fcns targeted for un-inlining
These functions have enough code in them such that they
seem like sensible targets for un-inlining. Prior to doing
that, this adds the tipc_ prefix to the functions, so that
in the event of a panic dump or similar, the subsystem from
which the functions come from is immediately clear.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/addr.h')
-rw-r--r-- | net/tipc/addr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tipc/addr.h b/net/tipc/addr.h index 3ba67e6ce03e..4d4aee0e4232 100644 --- a/net/tipc/addr.h +++ b/net/tipc/addr.h | |||
@@ -67,7 +67,7 @@ static inline int may_route(u32 addr) | |||
67 | return(addr ^ tipc_own_addr) >> 11; | 67 | return(addr ^ tipc_own_addr) >> 11; |
68 | } | 68 | } |
69 | 69 | ||
70 | static inline int in_scope(u32 domain, u32 addr) | 70 | static inline int tipc_in_scope(u32 domain, u32 addr) |
71 | { | 71 | { |
72 | if (!domain || (domain == addr)) | 72 | if (!domain || (domain == addr)) |
73 | return 1; | 73 | return 1; |
@@ -79,10 +79,10 @@ static inline int in_scope(u32 domain, u32 addr) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * addr_scope - convert message lookup domain to equivalent 2-bit scope value | 82 | * tipc_addr_scope - convert message lookup domain to a 2-bit scope value |
83 | */ | 83 | */ |
84 | 84 | ||
85 | static inline int addr_scope(u32 domain) | 85 | static inline int tipc_addr_scope(u32 domain) |
86 | { | 86 | { |
87 | if (likely(!domain)) | 87 | if (likely(!domain)) |
88 | return TIPC_ZONE_SCOPE; | 88 | return TIPC_ZONE_SCOPE; |
@@ -110,7 +110,7 @@ static inline int addr_domain(int sc) | |||
110 | return tipc_addr(tipc_zone(tipc_own_addr), 0, 0); | 110 | return tipc_addr(tipc_zone(tipc_own_addr), 0, 0); |
111 | } | 111 | } |
112 | 112 | ||
113 | static inline char *addr_string_fill(char *string, u32 addr) | 113 | static inline char *tipc_addr_string_fill(char *string, u32 addr) |
114 | { | 114 | { |
115 | snprintf(string, 16, "<%u.%u.%u>", | 115 | snprintf(string, 16, "<%u.%u.%u>", |
116 | tipc_zone(addr), tipc_cluster(addr), tipc_node(addr)); | 116 | tipc_zone(addr), tipc_cluster(addr), tipc_node(addr)); |