include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined
authorChen Gang <gang.chen@asianux.com>
Thu, 28 Mar 2013 15:24:53 +0000 (15:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Mar 2013 03:31:34 +0000 (23:31 -0400)
for make V=1 EXTRA_CFLAGS=-W ARCH=arm allmodconfig
    printk is need when CONFIG_BPF_JIT is defined
    or it will report pr_err and print_hex_dump are implicit declaration

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h

index d7d2508..d1248f4 100644 (file)
@@ -48,6 +48,9 @@ extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen);
 extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len);
 
 #ifdef CONFIG_BPF_JIT
+#include <linux/linkage.h>
+#include <linux/printk.h>
+
 extern void bpf_jit_compile(struct sk_filter *fp);
 extern void bpf_jit_free(struct sk_filter *fp);