summaryrefslogtreecommitdiffstats
path: root/src/crush
diff options
context:
space:
mode:
authorBrad Hubbard <bhubbard@redhat.com>2017-05-11 05:12:16 +0200
committerBrad Hubbard <bhubbard@redhat.com>2017-05-13 00:57:45 +0200
commitbfec53faa538243c43b54e047379da282b562873 (patch)
treefb262fcc8b35b185246f207b4568c3b17dee18d9 /src/crush
parentMerge pull request #14970 from dachary/wip-crush-documentation (diff)
downloadceph-bfec53faa538243c43b54e047379da282b562873.tar.xz
ceph-bfec53faa538243c43b54e047379da282b562873.zip
common: Remove redundant includes
Fixes: http://tracker.ceph.com/issues/19883 (Partially) Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Diffstat (limited to 'src/crush')
-rw-r--r--src/crush/builder.c5
-rw-r--r--src/crush/builder.h7
2 files changed, 7 insertions, 5 deletions
diff --git a/src/crush/builder.c b/src/crush/builder.c
index ec11d6c1f9d..dc342d28a01 100644
--- a/src/crush/builder.c
+++ b/src/crush/builder.c
@@ -1,15 +1,12 @@
#include <string.h>
-#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
-#include "include/int_types.h"
-
+#include "crush/crush.h"
#include "builder.h"
-#include "hash.h"
#define dprintk(args...) /* printf(args) */
diff --git a/src/crush/builder.h b/src/crush/builder.h
index e1db9a5a069..ffb5eaf22db 100644
--- a/src/crush/builder.h
+++ b/src/crush/builder.h
@@ -1,7 +1,12 @@
#ifndef CEPH_CRUSH_BUILDER_H
#define CEPH_CRUSH_BUILDER_H
-#include "crush.h"
+#include "include/int_types.h"
+
+struct crush_bucket;
+struct crush_choose_arg;
+struct crush_map;
+struct crush_rule;
/** @ingroup API
*