提交 65e4b792 编写于 作者: S Shraddha Barke 提交者: Greg Kroah-Hartman

Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_choose as static

Declare sptlrpc_rule_set_choose as static since it is accessed from this
particular file only. Also remove its declaration from
header file
Signed-off-by: NShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 57552bf0
...@@ -329,12 +329,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set) ...@@ -329,12 +329,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
memset(set, 0, sizeof(*set)); memset(set, 0, sizeof(*set));
} }
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
enum lustre_sec_part from,
enum lustre_sec_part to,
lnet_nid_t nid,
struct sptlrpc_flavor *sf);
int sptlrpc_process_config(struct lustre_cfg *lcfg); int sptlrpc_process_config(struct lustre_cfg *lcfg);
void sptlrpc_conf_log_start(const char *logname); void sptlrpc_conf_log_start(const char *logname);
void sptlrpc_conf_log_stop(const char *logname); void sptlrpc_conf_log_stop(const char *logname);
......
...@@ -373,11 +373,11 @@ static int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset, ...@@ -373,11 +373,11 @@ static int sptlrpc_rule_set_merge(struct sptlrpc_rule_set *rset,
* given from/to/nid, determine a matching flavor in ruleset. * given from/to/nid, determine a matching flavor in ruleset.
* return 1 if a match found, otherwise return 0. * return 1 if a match found, otherwise return 0.
*/ */
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset, static int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
enum lustre_sec_part from, enum lustre_sec_part from,
enum lustre_sec_part to, enum lustre_sec_part to,
lnet_nid_t nid, lnet_nid_t nid,
struct sptlrpc_flavor *sf) struct sptlrpc_flavor *sf)
{ {
struct sptlrpc_rule *r; struct sptlrpc_rule *r;
int n; int n;
...@@ -404,7 +404,6 @@ int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset, ...@@ -404,7 +404,6 @@ int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
return 0; return 0;
} }
EXPORT_SYMBOL(sptlrpc_rule_set_choose);
/********************************** /**********************************
* sptlrpc configuration support * * sptlrpc configuration support *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册