From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [bpf PATCH v2] bpf: fix for lex/yacc build error with gcc-5 Date: Wed, 25 Apr 2018 23:42:28 +0200 Message-ID: References: <20180425212245.25999.21181.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org To: John Fastabend , ast@kernel.org, jbenc@redhat.com Return-path: Received: from www62.your-server.de ([213.133.104.62]:53795 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751563AbeDYVmc (ORCPT ); Wed, 25 Apr 2018 17:42:32 -0400 In-Reply-To: <20180425212245.25999.21181.stgit@john-Precision-Tower-5810> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 04/25/2018 11:22 PM, John Fastabend wrote: > Fix build error found with Ubuntu shipped gcc-5 > > ~/git/bpf/tools/bpf$ make all > > Auto-detecting system features: > ... libbfd: [ OFF ] > ... disassembler-four-args: [ OFF ] > > CC bpf_jit_disasm.o > LINK bpf_jit_disasm > CC bpf_dbg.o > /home/john/git/bpf/tools/bpf/bpf_dbg.c: In function ‘cmd_load’: > /home/john/git/bpf/tools/bpf/bpf_dbg.c:1077:13: warning: ‘cont’ may be used uninitialized in this function [-Wmaybe-uninitialized] > } else if (matches(subcmd, "pcap") == 0) { > ^ > LINK bpf_dbg > CC bpf_asm.o > make: *** No rule to make target `bpf_exp.yacc.o', needed by `bpf_asm'. Stop. > > Fixes: 5a8997f20715 ("tools: bpf: respect output directory during build") > Signed-off-by: John Fastabend Applied to bpf, thanks John! Will see to get that annoying bpf_dbg warn out of the way if no one beats me to it. ;)