Skip to content

Commit

Permalink
ceph: trivial buildbot warnings fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mtanski committed Sep 6, 2013
1 parent e81568e commit 971f0bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/ceph/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*
*/

#include <linux/fscache.h>

#include "super.h"
#include "cache.h"

Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions fs/ceph/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 971f0bd

Please sign in to comment.