diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-26 22:03:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-27 10:36:55 -0400 |
commit | cc9c19b0302a83be6520c38a0a9944314ccc6962 (patch) | |
tree | 6f283425229fde7069581b1db2ea26e0dc0bb0e8 /sim/bpf/bpf-helpers.c | |
parent | 5d0b3088f75d2620eb87d5615a2637918d135491 (diff) | |
download | binutils-cc9c19b0302a83be6520c38a0a9944314ccc6962.zip binutils-cc9c19b0302a83be6520c38a0a9944314ccc6962.tar.gz binutils-cc9c19b0302a83be6520c38a0a9944314ccc6962.tar.bz2 |
sim: bpf: fix mixed decls & code warnings (and style)
Diffstat (limited to 'sim/bpf/bpf-helpers.c')
-rw-r--r-- | sim/bpf/bpf-helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/bpf/bpf-helpers.c b/sim/bpf/bpf-helpers.c index c308812..79a3a7d 100644 --- a/sim/bpf/bpf-helpers.c +++ b/sim/bpf/bpf-helpers.c @@ -72,6 +72,7 @@ bpf_trace_printk (SIM_CPU *current_cpu) supported, which are read from %r3, %r4 and %r5 respectively. */ for (i = 0, tags_processed = 0; i < size;) { + UDI value; QI c = GETMEMUQI (current_cpu, CPU_PC_GET (current_cpu), fmt_address + i); @@ -88,7 +89,7 @@ bpf_trace_printk (SIM_CPU *current_cpu) if (i++ >= size) return -1; /* XXX look for kernel error code. */ - UDI value = GET_H_GPR (3 + tags_processed); + value = GET_H_GPR (3 + tags_processed); switch ((GETMEMUQI (current_cpu, CPU_PC_GET (current_cpu), fmt_address + i))) |