From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935875AbcIFPeB (ORCPT ); Tue, 6 Sep 2016 11:34:01 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33364 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932180AbcIFPdz (ORCPT ); Tue, 6 Sep 2016 11:33:55 -0400 Date: Tue, 6 Sep 2016 08:33:50 -0700 From: Alexei Starovoitov To: Arnd Bergmann Cc: "David S . Miller" , netdev@vger.kernel.org, Alexei Starovoitov , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Alexei Starovoitov , linux-kernel@vger.kernel.org Subject: Re: [PATCH, net-next] perf, bpf: fix conditional call to bpf_overflow_handler Message-ID: <20160906153349.GA38225@ast-mbp.thefacebook.com> References: <20160906131033.1784262-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160906131033.1784262-1-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2016 at 03:10:22PM +0200, Arnd Bergmann wrote: > The newly added bpf_overflow_handler function is only built of both > CONFIG_EVENT_TRACING and CONFIG_BPF_SYSCALL are enabled, but the caller > only checks the latter: > > kernel/events/core.c: In function 'perf_event_alloc': > kernel/events/core.c:9106:27: error: 'bpf_overflow_handler' undeclared (first use in this function) > > This changes the caller so we also skip this call if CONFIG_EVENT_TRACING > is disabled entirely. > > Signed-off-by: Arnd Bergmann > Fixes: aa6a5f3cb2b2 ("perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs") > --- > kernel/events/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > I'm not entirely sure if this is the correct solution, please check before applying Acked-by: Alexei Starovoitov Thanks for the fix. Just saw build bot complaining last night and by the morning your fix is already here. Thanks!