Skip to contentSkip to conversation

netfilter: nft_hash: fix inclusion of linux/vmalloc.h

PATCH New Arturo Borrero Gonzalez 1 participant 1 message Apr 1, 2014

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

PATCH 1/1 netfilter: nft_hash: fix inclusion of linux/vmalloc.h

This solves this compilation warning:

net/netfilter/nft_hash.c: In function 'nft_hash_tbl_free':
net/netfilter/nft_hash.c:79:3: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration] net/netfilter/nft_hash.c: In function 'nft_hash_tbl_alloc':
net/netfilter/nft_hash.c:92:3: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration] net/netfilter/nft_hash.c:92:7: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[4]: *** [net/netfilter/nft_hash.o] Error 1
make[3]: *** [net/netfilter] Error 2
make[2]: *** [net] Error 2
[...]

Spotted when building the kernel in SPARC.

---
 net/netfilter/nft_hash.c |    1 +
 1 file changed, 1 insertion(+)
net/netfilter/nft_hash.c +1 -0
index 6a1acde..2732402 100644
@@ -8,6 +8,7 @@
  * Development of this code funded by Astaro AG (http://www.astaro.com/)
  */
 
+#include <linux/vmalloc.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/module.h>