Skip to contentSkip to conversation

drivers: md: include "linux/vmalloc.h" in "dm-cache-policy-hints.c"

PATCH In review Chen Gang 2 participants 3 messages Oct 30, 2013 – Oct 31, 2013

Subsystems (2)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 drivers: md: include "linux/vmalloc.h" in "dm-cache-policy-hints.c"

Need include related header file, or can not pass compiling, the related error (for powerpc with allmodconfig):

CC [M] drivers/md/dm-cache-policy-hints.o
drivers/md/dm-cache-policy-hints.c: In function ‘alloc_hash’:
drivers/md/dm-cache-policy-hints.c:94:2: error: implicit declaration of function ‘vzalloc’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c:94:14: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/md/dm-cache-policy-hints.c: In function ‘free_hash’:
drivers/md/dm-cache-policy-hints.c:101:2: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c: In function ‘alloc_bitset’:
drivers/md/dm-cache-policy-hints.c:184:2: warning: return makes pointer from integer without a cast [enabled by default]

---
 drivers/md/dm-cache-policy-hints.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/md/dm-cache-policy-hints.c +1 -0
index 312cfb7..a8c1930 100644
@@ -15,6 +15,7 @@
 #include <linux/hash.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 
 #define DM_MSG_PREFIX "cache-policy-hints"
 
Signature · 5 lines
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 13 lines · Chen Gang

Need include related header file, or can not pass compiling, the related error (for powerpc with allmodconfig):

CC [M] drivers/md/dm-cache-policy-hints.o
drivers/md/dm-cache-policy-hints.c: In function ‘alloc_hash’:
drivers/md/dm-cache-policy-hints.c:94:2: error: implicit declaration of function ‘vzalloc’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c:94:14: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/md/dm-cache-policy-hints.c: In function ‘free_hash’:
drivers/md/dm-cache-policy-hints.c:101:2: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c: In function ‘alloc_bitset’:
drivers/md/dm-cache-policy-hints.c:184:2: warning: return makes pointer from integer without a cast [enabled by default]

Quoted 1 line

This was already fixed a couple days ago in the linux-dm.git 'for-next' branch.

But thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 16 lines · Mike Snitzer
Quoted 13 lines · Chen Gang

Need include related header file, or can not pass compiling, the related error (for powerpc with allmodconfig):

CC [M] drivers/md/dm-cache-policy-hints.o
drivers/md/dm-cache-policy-hints.c: In function ‘alloc_hash’:
drivers/md/dm-cache-policy-hints.c:94:2: error: implicit declaration of function ‘vzalloc’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c:94:14: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/md/dm-cache-policy-hints.c: In function ‘free_hash’:
drivers/md/dm-cache-policy-hints.c:101:2: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration] drivers/md/dm-cache-policy-hints.c: In function ‘alloc_bitset’:
drivers/md/dm-cache-policy-hints.c:184:2: warning: return makes pointer from integer without a cast [enabled by default]

Quoted 8 lines
Quoted 1 line

This was already fixed a couple days ago in the linux-dm.git 'for-next' branch.

But thanks.

Thank you too.

Signature · 5 lines
Chen Gang
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html