]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ceph: trivial buildbot warnings fix
authorMilosz Tanski <milosz@adfin.com>
Fri, 6 Sep 2013 15:13:18 +0000 (15:13 +0000)
committerMilosz Tanski <milosz@adfin.com>
Fri, 6 Sep 2013 16:50:12 +0000 (16:50 +0000)
The linux-next build bot found a three of warnings, this addresses all of them.

 * non-ANSI function declaration of function 'ceph_fscache_register' and
   'ceph_fscache_unregister'
 * symbol 'ceph_cache_netfs' was not declared, now it's extern in the header.
 * warning: "pr_fmt" redefined

Signed-off-by: Milosz Tanski <milosz@adfin.com>
fs/ceph/cache.c
fs/ceph/cache.h

index d3b88c7518d02677760a56f696263b69d3a4c69a..6bfe65e0b03831280b0e66e96d616be9ee55e6b1 100644 (file)
@@ -21,8 +21,6 @@
  *
  */
 
-#include <linux/fscache.h>
-
 #include "super.h"
 #include "cache.h"
 
@@ -56,12 +54,12 @@ static const struct fscache_cookie_def ceph_fscache_fsid_object_def = {
        .get_key        = ceph_fscache_session_get_key,
 };
 
-int ceph_fscache_register()
+int ceph_fscache_register(void)
 {
        return fscache_register_netfs(&ceph_cache_netfs);
 }
 
-void ceph_fscache_unregister()
+void ceph_fscache_unregister(void)
 {
        fscache_unregister_netfs(&ceph_cache_netfs);
 }
index bf4869547291c9ea6fc3782cbd49b27146d10a74..ba949408a336e663e018e5a2b9d0da040d9346f7 100644 (file)
@@ -26,6 +26,8 @@
 
 #ifdef CONFIG_CEPH_FSCACHE
 
+extern struct fscache_netfs ceph_cache_netfs;
+
 int ceph_fscache_register(void);
 void ceph_fscache_unregister(void);