Skip to content

Commit

Permalink
libceph: fix some missing includes
Browse files Browse the repository at this point in the history
- decode.h needs slab.h for kmalloc()
- osd_client.h needs msgpool.h for struct ceph_msgpool
- msgpool.h doesn't need messenger.h

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Ilya Dryomov committed Jul 28, 2016
1 parent 523d939 commit b2aa5d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/linux/ceph/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <linux/err.h>
#include <linux/bug.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <asm/unaligned.h>

Expand Down
1 change: 0 additions & 1 deletion include/linux/ceph/msgpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define _FS_CEPH_MSGPOOL

#include <linux/mempool.h>
#include <linux/ceph/messenger.h>

/*
* we use memory pools for preallocating messages we may receive, to
Expand Down
1 change: 1 addition & 0 deletions include/linux/ceph/osd_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/ceph/types.h>
#include <linux/ceph/osdmap.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/msgpool.h>
#include <linux/ceph/auth.h>
#include <linux/ceph/pagelist.h>

Expand Down
1 change: 1 addition & 0 deletions net/ceph/msgpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <linux/types.h>
#include <linux/vmalloc.h>

#include <linux/ceph/messenger.h>
#include <linux/ceph/msgpool.h>

static void *msgpool_alloc(gfp_t gfp_mask, void *arg)
Expand Down

0 comments on commit b2aa5d0

Please sign in to comment.