All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sunrpc: Give parameter names to rpc_count_iostasts_metrics()
@ 2015-02-09 19:07 Anna Schumaker
  2015-02-09 21:30 ` Tom Haynes
  0 siblings, 1 reply; 3+ messages in thread
From: Anna Schumaker @ 2015-02-09 19:07 UTC (permalink / raw)
  To: Trond.Myklebust, linux-nfs; +Cc: Thomas.Haynes

We fall back to an empty function in the case that CONFIG_PROC_FS=n, so
give this function named parameters to silence a "parameter name omitted"
warning.

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
---
 include/linux/sunrpc/metrics.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/sunrpc/metrics.h b/include/linux/sunrpc/metrics.h
index 7e61a17..b23b8ed 100644
--- a/include/linux/sunrpc/metrics.h
+++ b/include/linux/sunrpc/metrics.h
@@ -89,8 +89,8 @@ void			rpc_free_iostats(struct rpc_iostats *);
 static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; }
 static inline void rpc_count_iostats(const struct rpc_task *task,
 				     struct rpc_iostats *stats) {}
-static inline void rpc_count_iostats_metrics(const struct rpc_task *,
-					     struct rpc_iostats *) {}
+static inline void rpc_count_iostats_metrics(const struct rpc_task *task,
+					     struct rpc_iostats *op_metrics) {}
 static inline void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) {}
 static inline void rpc_free_iostats(struct rpc_iostats *stats) {}
 
-- 
2.3.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-09 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 19:07 [PATCH] sunrpc: Give parameter names to rpc_count_iostasts_metrics() Anna Schumaker
2015-02-09 21:30 ` Tom Haynes
2015-02-09 21:31   ` Anna Schumaker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.