filter: fix va_list build error
authorXi Wang <xi.wang@gmail.com>
Wed, 1 May 2013 20:24:08 +0000 (16:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2013 20:28:48 +0000 (16:28 -0400)
This patch fixes the following build error.

In file included from include/linux/filter.h:52:0,
                 from arch/arm/net/bpf_jit_32.c:14:
include/linux/printk.h:54:2: error: unknown type name ‘va_list’
include/linux/printk.h:105:21: error: unknown type name ‘va_list’
include/linux/printk.h:108:30: error: unknown type name ‘va_list’

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h

index d1248f401a56d3210d8d9297e8ecaa893821f870..c050dcc322a43e2264bdaf49b3667a0b2e63c6ab 100644 (file)
@@ -48,6 +48,7 @@ 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 <stdarg.h>
 #include <linux/linkage.h>
 #include <linux/printk.h>