From: Oleg Drokin Date: Sun, 27 Apr 2014 01:41:23 +0000 (-0400) Subject: LU-4423 ptlrpc: Fix function prototypes X-Git-Tag: 2.5.59~64 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F10120%2F2;p=fs%2Flustre-release.git LU-4423 ptlrpc: Fix function prototypes ptlrpc_request_cache_init and ptlrpc_request_cache_fini added by request cache code did not include argument type in the declaration which causes a checkpatch warning. Change-Id: I41f4f96cfbc9e63417b6adbe6ba1902248494fbb Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/10120 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Dmitry Eremin Reviewed-by: James Simmons --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 7936a0d..a543788 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -390,7 +390,7 @@ static int ptlrpc_at_recv_early_reply(struct ptlrpc_request *req) struct kmem_cache *request_cache; -int ptlrpc_request_cache_init() +int ptlrpc_request_cache_init(void) { request_cache = kmem_cache_create("ptlrpc_cache", sizeof(struct ptlrpc_request), @@ -398,7 +398,7 @@ int ptlrpc_request_cache_init() return request_cache == NULL ? -ENOMEM : 0; } -void ptlrpc_request_cache_fini() +void ptlrpc_request_cache_fini(void) { kmem_cache_destroy(request_cache); }