diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-10-28 07:23:24 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-12-12 17:54:26 -0500 |
commit | f6c0d1a3edb5862c21ddb57bd4dfa175b01136ca (patch) | |
tree | 23d836c25e9df5e5d105703ce076e24a464dedd8 | |
parent | d4c2269b3d5d06a8ea434b1841fbcaec336ed396 (diff) |
crush: include mapper.h in mapper.c
Include linux/crush/mapper.h in crush/mapper.c to get the prototypes of
crush_find_rule and crush_do_rule which are defined there. This fixes
the following GCC warnings when building with 'W=1':
net/ceph/crush/mapper.c:40:5: warning: no previous prototype for ‘crush_find_rule’ [-Wmissing-prototypes]
net/ceph/crush/mapper.c:793:5: warning: no previous prototype for ‘crush_do_rule’ [-Wmissing-prototypes]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
[idryomov@gmail.com: corresponding !__KERNEL__ include]
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r-- | net/ceph/crush/mapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c index a421e905331a..130ab407c5ec 100644 --- a/net/ceph/crush/mapper.c +++ b/net/ceph/crush/mapper.c | |||
@@ -17,10 +17,12 @@ | |||
17 | # include <linux/kernel.h> | 17 | # include <linux/kernel.h> |
18 | # include <linux/crush/crush.h> | 18 | # include <linux/crush/crush.h> |
19 | # include <linux/crush/hash.h> | 19 | # include <linux/crush/hash.h> |
20 | # include <linux/crush/mapper.h> | ||
20 | #else | 21 | #else |
21 | # include "crush_compat.h" | 22 | # include "crush_compat.h" |
22 | # include "crush.h" | 23 | # include "crush.h" |
23 | # include "hash.h" | 24 | # include "hash.h" |
25 | # include "mapper.h" | ||
24 | #endif | 26 | #endif |
25 | #include "crush_ln_table.h" | 27 | #include "crush_ln_table.h" |
26 | 28 | ||