From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932527AbcFQMxY (ORCPT ); Fri, 17 Jun 2016 08:53:24 -0400 Received: from ozlabs.org ([103.22.144.67]:39990 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751309AbcFQMxX (ORCPT ); Fri, 17 Jun 2016 08:53:23 -0400 In-Reply-To: <908d3552b5eb240b28f70aee7c4c86e2b600aa02.1465304785.git.naveen.n.rao@linux.vnet.ibm.com> To: "Naveen N. Rao" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org From: Michael Ellerman Cc: Matt Evans , Daniel Borkmann , Alexei Starovoitov , Denis Kirjanov , Paul Mackerras , "David S. Miller" , Ananth N Mavinakayanahalli Subject: Re: [6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF Message-Id: <3rWKtT2tSrz9t2G@ozlabs.org> Date: Fri, 17 Jun 2016 22:53:21 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-07-06 at 13:32:23 UTC, "Naveen N. Rao" wrote: > diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c > new file mode 100644 > index 0000000..954ff53 > --- /dev/null > +++ b/arch/powerpc/net/bpf_jit_comp64.c > @@ -0,0 +1,956 @@ ... > + > +static void bpf_jit_fill_ill_insns(void *area, unsigned int size) > +{ > + int *p = area; > + > + /* Fill whole space with trap instructions */ > + while (p < (int *)((char *)area + size)) > + *p++ = BREAKPOINT_INSTRUCTION; > +} This breaks the build for some configs, presumably you're missing a header: arch/powerpc/net/bpf_jit_comp64.c:30:10: error: 'BREAKPOINT_INSTRUCTION' undeclared (first use in this function) http://kisskb.ellerman.id.au/kisskb/buildresult/12720611/ cheers