Staging: lustre: ptlrpc: nrs: Declare as static
authorShraddha Barke <shraddha.6596@gmail.com>
Sun, 4 Oct 2015 07:30:09 +0000 (13:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:59:35 +0000 (09:59 +0100)
Declare ptlrpc_nrs_policy_register as static since it is used
only in this particular file. Also remove corresponding declaration
from header files.

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

index af3bf2164ef933694e4d8015279dfb57bef0d794..428b83d0db5e3b0c0159a39e753c922423e68a14 100644 (file)
@@ -1528,11 +1528,6 @@ static inline int ptlrpc_req_interpret(const struct lu_env *env,
        return rc;
 }
 
-/** \addtogroup  nrs
- * @{
- */
-int ptlrpc_nrs_policy_register(struct ptlrpc_nrs_pol_conf *conf);
-
 /*
  * Can the request be moved from the regular NRS head to the high-priority NRS
  * head (of the same PTLRPC service partition), if any?
index 2476cf22c18440256a11c42fe1af968058ce28b3..3fe96a183401a936ae37e7e8c9a0ed58e74e07a2 100644 (file)
@@ -1111,7 +1111,7 @@ again:
  * \retval -ve error
  * \retval   0 success
  */
-int ptlrpc_nrs_policy_register(struct ptlrpc_nrs_pol_conf *conf)
+static int ptlrpc_nrs_policy_register(struct ptlrpc_nrs_pol_conf *conf)
 {
        struct ptlrpc_service *svc;
        struct ptlrpc_nrs_pol_desc *desc;
@@ -1247,7 +1247,6 @@ fail:
 
        return rc;
 }
-EXPORT_SYMBOL(ptlrpc_nrs_policy_register);
 
 /**
  * Setup NRS heads on all service partitions of service \a svc, and register