Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751507AbdHDFqh (ORCPT ); Fri, 4 Aug 2017 01:46:37 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:38837 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbdHDFqg (ORCPT ); Fri, 4 Aug 2017 01:46:36 -0400 From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)) Subject: [PATCH] samples/bpf: Fix cross compiler error with bpf sample Date: Thu, 3 Aug 2017 22:46:23 -0700 Message-Id: <20170804054623.5229-1-joelaf@google.com> X-Mailer: git-send-email 2.14.0.rc1.383.gd1ce394fe2-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 25 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 --- 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 #include #include +#define __ARCH_WANT_SYSCALL_DEPRECATED #include +#undef __ARCH_WANT_SYSCALL_DEPRECATED #include #include #include -- 2.14.0.rc1.383.gd1ce394fe2-goog