From: Shraddha Barke Date: Sun, 4 Oct 2015 07:30:09 +0000 (+0530) Subject: Staging: lustre: ptlrpc: nrs: Declare as static X-Git-Tag: v4.14-rc1~4420^2~1170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53856b23201c780599c877d66b625fcbc5bc9dd3;p=platform%2Fkernel%2Flinux-rpi.git 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: Shraddha Barke Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/include/lustre_net.h b/drivers/staging/lustre/lustre/include/lustre_net.h index af3bf21..428b83d 100644 --- a/drivers/staging/lustre/lustre/include/lustre_net.h +++ b/drivers/staging/lustre/lustre/include/lustre_net.h @@ -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? diff --git a/drivers/staging/lustre/lustre/ptlrpc/nrs.c b/drivers/staging/lustre/lustre/ptlrpc/nrs.c index 2476cf2..3fe96a18 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/nrs.c +++ b/drivers/staging/lustre/lustre/ptlrpc/nrs.c @@ -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