net/tap: fix build on ppc
authorGowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
Tue, 30 Jan 2018 07:05:13 +0000 (12:35 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jan 2018 13:28:14 +0000 (14:28 +0100)
This patch defines __NR_bpf for powerpc architecture and hence,
fixes compiling tap driver for this architecture.

Fixes: b02d85e1 ("net/tap: add eBPF API")

Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/tap_bpf.h

index 8d6f9a2..06e9509 100644 (file)
@@ -97,6 +97,8 @@ union bpf_attr {
 #  define __NR_bpf 349
 # elif defined(__s390__)
 #  define __NR_bpf 351
+# elif defined(__powerpc__)
+#  define __NR_bpf 361
 # else
 #  error __NR_bpf not defined
 # endif