Commit 0b2b3070 authored by Teodora Baluta's avatar Teodora Baluta Committed by Greg Kroah-Hartman

staging: lustre: place EXPORT_SYMBOL after its function

This patch fixes the following type of warnings detected by
checkpatch.pl:

WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Signed-off-by: default avatarTeodora Baluta <teobaluta@gmail.com>
Reviewed-by: default avatarLisa Nguyen <lisa@xenapiadmin.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b008e65c
...@@ -326,6 +326,7 @@ libcfs_isknown_lnd(int type) ...@@ -326,6 +326,7 @@ libcfs_isknown_lnd(int type)
{ {
return libcfs_lnd2netstrfns(type) != NULL; return libcfs_lnd2netstrfns(type) != NULL;
} }
EXPORT_SYMBOL(libcfs_isknown_lnd);
char * char *
libcfs_lnd2modname(int lnd) libcfs_lnd2modname(int lnd)
...@@ -334,6 +335,7 @@ libcfs_lnd2modname(int lnd) ...@@ -334,6 +335,7 @@ libcfs_lnd2modname(int lnd)
return (nf == NULL) ? NULL : nf->nf_modname; return (nf == NULL) ? NULL : nf->nf_modname;
} }
EXPORT_SYMBOL(libcfs_lnd2modname);
char * char *
libcfs_lnd2str(int lnd) libcfs_lnd2str(int lnd)
...@@ -348,6 +350,7 @@ libcfs_lnd2str(int lnd) ...@@ -348,6 +350,7 @@ libcfs_lnd2str(int lnd)
snprintf(str, LNET_NIDSTR_SIZE, "?%u?", lnd); snprintf(str, LNET_NIDSTR_SIZE, "?%u?", lnd);
return str; return str;
} }
EXPORT_SYMBOL(libcfs_lnd2str);
int int
libcfs_str2lnd(const char *str) libcfs_str2lnd(const char *str)
...@@ -359,6 +362,7 @@ libcfs_str2lnd(const char *str) ...@@ -359,6 +362,7 @@ libcfs_str2lnd(const char *str)
return -1; return -1;
} }
EXPORT_SYMBOL(libcfs_str2lnd);
char * char *
libcfs_net2str(__u32 net) libcfs_net2str(__u32 net)
...@@ -377,6 +381,7 @@ libcfs_net2str(__u32 net) ...@@ -377,6 +381,7 @@ libcfs_net2str(__u32 net)
return str; return str;
} }
EXPORT_SYMBOL(libcfs_net2str);
char * char *
libcfs_nid2str(lnet_nid_t nid) libcfs_nid2str(lnet_nid_t nid)
...@@ -410,6 +415,7 @@ libcfs_nid2str(lnet_nid_t nid) ...@@ -410,6 +415,7 @@ libcfs_nid2str(lnet_nid_t nid)
return str; return str;
} }
EXPORT_SYMBOL(libcfs_nid2str);
static struct netstrfns * static struct netstrfns *
libcfs_str2net_internal(const char *str, __u32 *net) libcfs_str2net_internal(const char *str, __u32 *net)
...@@ -458,6 +464,7 @@ libcfs_str2net(const char *str) ...@@ -458,6 +464,7 @@ libcfs_str2net(const char *str)
return LNET_NIDNET(LNET_NID_ANY); return LNET_NIDNET(LNET_NID_ANY);
} }
EXPORT_SYMBOL(libcfs_str2net);
lnet_nid_t lnet_nid_t
libcfs_str2nid(const char *str) libcfs_str2nid(const char *str)
...@@ -483,6 +490,7 @@ libcfs_str2nid(const char *str) ...@@ -483,6 +490,7 @@ libcfs_str2nid(const char *str)
return LNET_MKNID(net, addr); return LNET_MKNID(net, addr);
} }
EXPORT_SYMBOL(libcfs_str2nid);
char * char *
libcfs_id2str(lnet_process_id_t id) libcfs_id2str(lnet_process_id_t id)
...@@ -500,6 +508,7 @@ libcfs_id2str(lnet_process_id_t id) ...@@ -500,6 +508,7 @@ libcfs_id2str(lnet_process_id_t id)
(id.pid & ~LNET_PID_USERFLAG), libcfs_nid2str(id.nid)); (id.pid & ~LNET_PID_USERFLAG), libcfs_nid2str(id.nid));
return str; return str;
} }
EXPORT_SYMBOL(libcfs_id2str);
int int
libcfs_str2anynid(lnet_nid_t *nidp, const char *str) libcfs_str2anynid(lnet_nid_t *nidp, const char *str)
...@@ -512,6 +521,7 @@ libcfs_str2anynid(lnet_nid_t *nidp, const char *str) ...@@ -512,6 +521,7 @@ libcfs_str2anynid(lnet_nid_t *nidp, const char *str)
*nidp = libcfs_str2nid(str); *nidp = libcfs_str2nid(str);
return *nidp != LNET_NID_ANY; return *nidp != LNET_NID_ANY;
} }
EXPORT_SYMBOL(libcfs_str2anynid);
/** /**
* Nid range list syntax. * Nid range list syntax.
...@@ -765,6 +775,7 @@ cfs_free_nidlist(struct list_head *list) ...@@ -765,6 +775,7 @@ cfs_free_nidlist(struct list_head *list)
LIBCFS_FREE(nr, sizeof(struct nidrange)); LIBCFS_FREE(nr, sizeof(struct nidrange));
} }
} }
EXPORT_SYMBOL(cfs_free_nidlist);
/** /**
* Parses nid range list. * Parses nid range list.
...@@ -803,6 +814,7 @@ cfs_parse_nidlist(char *str, int len, struct list_head *nidlist) ...@@ -803,6 +814,7 @@ cfs_parse_nidlist(char *str, int len, struct list_head *nidlist)
} }
return 1; return 1;
} }
EXPORT_SYMBOL(cfs_parse_nidlist);
/* /*
* Nf_match_addr method for networks using numeric addresses * Nf_match_addr method for networks using numeric addresses
...@@ -848,18 +860,4 @@ int cfs_match_nid(lnet_nid_t nid, struct list_head *nidlist) ...@@ -848,18 +860,4 @@ int cfs_match_nid(lnet_nid_t nid, struct list_head *nidlist)
} }
return 0; return 0;
} }
EXPORT_SYMBOL(libcfs_isknown_lnd);
EXPORT_SYMBOL(libcfs_lnd2modname);
EXPORT_SYMBOL(libcfs_lnd2str);
EXPORT_SYMBOL(libcfs_str2lnd);
EXPORT_SYMBOL(libcfs_net2str);
EXPORT_SYMBOL(libcfs_nid2str);
EXPORT_SYMBOL(libcfs_str2net);
EXPORT_SYMBOL(libcfs_str2nid);
EXPORT_SYMBOL(libcfs_id2str);
EXPORT_SYMBOL(libcfs_str2anynid);
EXPORT_SYMBOL(cfs_free_nidlist);
EXPORT_SYMBOL(cfs_parse_nidlist);
EXPORT_SYMBOL(cfs_match_nid); EXPORT_SYMBOL(cfs_match_nid);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment