All of lore.kernel.org
 help / color / mirror / Atom feed
* error: ‘target’ may be used uninitialized in arch/mips/net/ebpf_jit.c
@ 2017-09-26 15:13 Matt Redfearn
  2017-09-26 16:08 ` David Daney
  2017-09-27  8:14   ` Matt Redfearn
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Redfearn @ 2017-09-26 15:13 UTC (permalink / raw)
  To: David Daney; +Cc: Linux MIPS Mailing List

Hi David,

I see the following compiler error when I turn on CONFIG_MIPS_EBPF_JIT 
with v4.13 and v4.14-rc1 (cavium_octeon_defconfig based)

This is with gcc:

gcc version 4.9.2 (Codescape GNU Tools 2016.05-03 for MIPS MTI Linux)


arch/mips/net/ebpf_jit.c: In function ‘build_one_insn’:
arch/mips/net/ebpf_jit.c:1119:80: error: ‘target’ may be used 
uninitialized in this function [-Werror=maybe-uninitialized]
     emit_instr(ctx, j, target);
^
cc1: all warnings being treated as errors


This appears to have been the case since the ebpf_jit was merged in 
b6bd53f9c4e825fca82fe1392157c78443c814ab.

Thanks,

Matt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-27  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-26 15:13 error: ‘target’ may be used uninitialized in arch/mips/net/ebpf_jit.c Matt Redfearn
2017-09-26 16:08 ` David Daney
2017-09-27  8:14 ` [PATCH] MIPS: bpf: Fix uninitialised target compiler error Matt Redfearn
2017-09-27  8:14   ` Matt Redfearn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.