Whamcloud - gitweb
LU-4423 ptlrpc: Fix function prototypes 20/10120/2
authorOleg Drokin <oleg.drokin@intel.com>
Sun, 27 Apr 2014 01:41:23 +0000 (21:41 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 1 May 2014 19:06:48 +0000 (19:06 +0000)
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 <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/10120
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
lustre/ptlrpc/client.c

index 7936a0d..a543788 100644 (file)
@@ -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);
 }