[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ceph-devel
Subject:    [PATCH] ceph: include linux/crush/mapper.h in crush/mapper.c
From:       Tobias Klauser <tklauser () distanz ! ch>
Date:       2016-10-28 11:23:24
Message-ID: 20161028112324.14850-1-tklauser () distanz ! ch
[Download RAW message or body]

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>
---
 net/ceph/crush/mapper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c
index a421e905331a..407bd146ba9e 100644
--- a/net/ceph/crush/mapper.c
+++ b/net/ceph/crush/mapper.c
@@ -17,6 +17,7 @@
 # include <linux/kernel.h>
 # include <linux/crush/crush.h>
 # include <linux/crush/hash.h>
+# include <linux/crush/mapper.h>
 #else
 # include "crush_compat.h"
 # include "crush.h"
-- 
2.9.0


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic