Staging: lustre: ptlrpc: Declare sptlrpc_rule_set_expand as static
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 2 Oct 2015 10:49:28 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 07:43:44 +0000 (08:43 +0100)
Declare sptlrpc_rule_set_expand as static since it is accessed from this
particular file only. Also remove its declaration from
header file

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_sec.h
drivers/staging/lustre/lustre/ptlrpc/sec_config.c

index d284f91def11a3047fad5974e7188515f226ff0c..4f1d9839600608ad9b5fa7665ed5f1872bed4636 100644 (file)
@@ -329,7 +329,6 @@ static inline void sptlrpc_rule_set_init(struct sptlrpc_rule_set *set)
        memset(set, 0, sizeof(*set));
 }
 
-int  sptlrpc_rule_set_expand(struct sptlrpc_rule_set *set);
 int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
                            enum lustre_sec_part from,
                            enum lustre_sec_part to,
index 0309817c4ff4af7cb64c166a659b01fe9e25b5ac..0664042fe22cf850dea4500971deeea21cf7c29f 100644 (file)
@@ -229,7 +229,7 @@ static void sptlrpc_rule_set_free(struct sptlrpc_rule_set *rset)
 /*
  * return 0 if the rule set could accommodate one more rule.
  */
-int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
+static int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
 {
        struct sptlrpc_rule *rules;
        int nslot;