Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-5648 ofd: In destroy orphan case always let MDS know last id
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
nidstrings.c
diff --git
a/libcfs/libcfs/nidstrings.c
b/libcfs/libcfs/nidstrings.c
index
10e8f8d
..
3442b86
100644
(file)
--- a/
libcfs/libcfs/nidstrings.c
+++ b/
libcfs/libcfs/nidstrings.c
@@
-278,16
+278,17
@@
static struct netstrfns libcfs_netstrfns[] = {
{/* .nf_type */ -1},
};
-const int libcfs_nnetstrfns = sizeof(libcfs_netstrfns)/sizeof(libcfs_netstrfns[0]);
+static const int libcfs_nnetstrfns =
+ sizeof(libcfs_netstrfns)/sizeof(libcfs_netstrfns[0]);
-int
+
static
int
libcfs_lo_str2addr(const char *str, int nob, __u32 *addr)
{
*addr = 0;
return 1;
}
-void
+
static
void
libcfs_ip_addr2str(__u32 addr, char *str)
{
#if 0 /* never lookup */
@@
-313,7
+314,7
@@
libcfs_ip_addr2str(__u32 addr, char *str)
* fine, if it doesn't, then the scan ended at the end of the string, which is
* fine too :) */
-int
+
static
int
libcfs_ip_str2addr(const char *str, int nob, __u32 *addr)
{
unsigned int a;
@@
-360,19
+361,19
@@
libcfs_ip_str2addr(const char *str, int nob, __u32 *addr)
return 0;
}
-void
+
static
void
libcfs_decnum_addr2str(__u32 addr, char *str)
{
snprintf(str, LNET_NIDSTR_SIZE, "%u", addr);
}
-void
+
static
void
libcfs_hexnum_addr2str(__u32 addr, char *str)
{
snprintf(str, LNET_NIDSTR_SIZE, "0x%x", addr);
}
-int
+
static
int
libcfs_num_str2addr(const char *str, int nob, __u32 *addr)
{
int n;
@@
-392,7
+393,7
@@
libcfs_num_str2addr(const char *str, int nob, __u32 *addr)
return 0;
}
-struct netstrfns *
+st
atic st
ruct netstrfns *
libcfs_lnd2netstrfns(int lnd)
{
int i;
@@
-405,7
+406,7
@@
libcfs_lnd2netstrfns(int lnd)
return NULL;
}
-struct netstrfns *
+st
atic st
ruct netstrfns *
libcfs_namenum2netstrfns(const char *name)
{
struct netstrfns *nf;
@@
-420,7
+421,7
@@
libcfs_namenum2netstrfns(const char *name)
return NULL;
}
-struct netstrfns *
+st
atic st
ruct netstrfns *
libcfs_name2netstrfns(const char *name)
{
int i;