From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark.rutland@arm.com (Mark Rutland) Date: Fri, 17 Mar 2017 17:04:36 +0000 Subject: [RFC arm64] samples/bpf: explicitly exclude sysreg sections with asm macros In-Reply-To: <383e1626-335b-01fe-5921-5956d7201cf4@arm.com> References: <20170310192656.GA13928@C02RW35GFVH8> <20170310204112.GA21382@leverpostej> <20170315183130.GB32819@C02RW35GFVH8.dhcp.broadcom.net> <20170315191741.GB29452@leverpostej> <20170315205404.GA43995@C02RW35GFVH8.dhcp.broadcom.net> <20170316104204.GA31101@leverpostej> <20170316210454.GA53792@C02RW35GFVH8.dhcp.broadcom.net> <20170317135836.GA58086@C02RW35GFVH8.dhcp.broadcom.net> <383e1626-335b-01fe-5921-5956d7201cf4@arm.com> Message-ID: <20170317170436.GL5940@leverpostej> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Mar 17, 2017 at 04:57:20PM +0000, Robin Murphy wrote: > I'm honestly not sure if I'm serious or not, but: /me shakes the magic 8 ball... > diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile > index 72c58675973e..f52ebad7b096 100644 > --- a/samples/bpf/Makefile > +++ b/samples/bpf/Makefile > @@ -154,6 +154,6 @@ $(src)/*.c: verify_target_bpf > # useless for BPF samples. > $(obj)/%.o: $(src)/%.c > $(CLANG) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \ > - -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value > -Wno-pointer-sign \ > + -D__KERNEL__ -D'asm(...)' -Wno-unused-value > -Wno-pointer-sign \ > -Wno-compare-distinct-pointer-types \ > -O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf > -filetype=obj -o $@ ... "Concentrate and ask again". Thanks, Mark.