Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53856b23 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: ptlrpc: nrs: Declare as static



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: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 757e0cb5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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?
+1 −2
Original line number Diff line number Diff line
@@ -1111,7 +1111,7 @@ static int nrs_policy_unregister_locked(struct ptlrpc_nrs_pol_desc *desc)
 * \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 @@ int ptlrpc_nrs_policy_register(struct ptlrpc_nrs_pol_conf *conf)

	return rc;
}
EXPORT_SYMBOL(ptlrpc_nrs_policy_register);

/**
 * Setup NRS heads on all service partitions of service \a svc, and register