[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170804054623.5229-1-joelaf@google.com>
Date: Thu, 3 Aug 2017 22:46:23 -0700
From: Joel Fernandes <joelaf@...gle.com>
To: linux-kernel@...r.kernel.org
Cc: Joel Fernandes <joelaf@...gle.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
netdev@...r.kernel.org (open list:BPF (Safe dynamic programs and tools))
Subject: [PATCH] samples/bpf: Fix cross compiler error with bpf sample
When cross-compiling the bpf sample map_perf_test for aarch64, I find that
__NR_getpgrp is undefined. This causes build errors. Fix it by allowing the
deprecated syscall in the sample.
Signed-off-by: Joel Fernandes <joelaf@...gle.com>
---
samples/bpf/map_perf_test_user.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/samples/bpf/map_perf_test_user.c b/samples/bpf/map_perf_test_user.c
index 1a8894b5ac51..6e6fc7121640 100644
--- a/samples/bpf/map_perf_test_user.c
+++ b/samples/bpf/map_perf_test_user.c
@@ -8,7 +8,9 @@
#include <sched.h>
#include <stdio.h>
#include <sys/types.h>
+#define __ARCH_WANT_SYSCALL_DEPRECATED
#include <asm/unistd.h>
+#undef __ARCH_WANT_SYSCALL_DEPRECATED
#include <unistd.h>
#include <assert.h>
#include <sys/wait.h>
--
2.14.0.rc1.383.gd1ce394fe2-goog
Powered by blists - more mailing lists