Skip to contentSkip to conversation

next: mips: bpf: Fix build failure

PATCH Applied Guenter Roeck 2 participants 2 messages Sep 30, 2014

Subsystems (5)
Networking Network drivers MIPS BPF +1 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 next: mips: bpf: Fix build failure

Fix:

arch/mips/net/bpf_jit.c: In function 'build_body':
arch/mips/net/bpf_jit.c:762:6: error: unused variable 'tmp'
cc1: all warnings being treated as errors
make[2]: *** [arch/mips/net/bpf_jit.o] Error 1

Seen when building mips:allmodconfig in -next since next-20140924.

---
 arch/mips/net/bpf_jit.c | 1 -
 1 file changed, 1 deletion(-)
arch/mips/net/bpf_jit.c +0 -1
index 7561833..9b55143 100644
@@ -759,7 +759,6 @@ static int build_body(struct jit_ctx *ctx)
 	const struct sock_filter *inst;
 	unsigned int i, off, load_order, condt;
 	u32 k, b_off __maybe_unused;
-	int tmp;
 
 	for (i = 0; i < prog->len; i++) {
 		u16 code;
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw

From: Guenter Roeck <[email protected]>
Date: Tue, 30 Sep 2014 09:39:00 -0700

Quoted 10 lines

Fix:

arch/mips/net/bpf_jit.c: In function 'build_body':
arch/mips/net/bpf_jit.c:762:6: error: unused variable 'tmp'
cc1: all warnings being treated as errors
make[2]: *** [arch/mips/net/bpf_jit.o] Error 1

Seen when building mips:allmodconfig in -next since next-20140924.

Applied, thank you.