Skip to contentSkip to conversation

crush: include header for global symbols

PATCH Applied H Hartley Sweeten 2 participants 2 messages Apr 25, 2012 – Apr 27, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crush: include header for global symbols

Include the header to pickup the definitions of the global symbols.

Quiets the following sparse warnings:

warning: symbol 'crush_find_rule' was not declared. Should it be static?
warning: symbol 'crush_do_rule' was not declared. Should it be static?

Cc Sage Weil <[email protected]>
Cc "David S. Miller" <[email protected]>

---

net/ceph/crush/mapper.c +1 -0
index 854ac53..363f8f7 100644
@@ -20,6 +20,7 @@
 
 #include <linux/crush/crush.h>
 #include <linux/crush/hash.h>
+#include <linux/crush/mapper.h>
 
 /*
  * Implement the core CRUSH mapping algorithm.
maintainer Applied
#1 lore raw

From: H Hartley Sweeten <[email protected]>
Date: Tue, 24 Apr 2012 17:38:37 -0700

Quoted 8 lines

Include the header to pickup the definitions of the global symbols.

Quiets the following sparse warnings:

warning: symbol 'crush_find_rule' was not declared. Should it be static?
warning: symbol 'crush_do_rule' was not declared. Should it be static?

Applied.