diff options
author | Kees Cook <[email protected]> | 2022-02-02 14:48:34 -0800 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-02-13 16:48:04 -0800 |
commit | 2a55550fbba643f41318bb12ab20e6510c7df231 (patch) | |
tree | e94c670ef14997f33b3dbfa82d3b0c29b6eab5cf /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 9ed0a59c0cbb663ea09588322498499a937d08fa (diff) |
m68k: cmpxchg: Dereference matching size
Similar to the recent arm64 fix[1], avoid overly wide casts in the m68k
cmpxchg implementation. Avoids this warning under -Warray-bounds with
GCC 11:
net/sched/cls_tcindex.c: In function 'tcindex_set_parms':
./arch/m68k/include/asm/cmpxchg.h:64:17: warning: array subscript 'volatile struct __xchg_dummy[0]' is partly outside array bounds of 'struct tcf_result[1]' [-Warray-bounds]
64 | __asm__ __volatile__
| ^~~~~~~
net/sched/cls_tcindex.c:338:27: note: while referencing 'cr'
338 | struct tcf_result cr = {};
| ^~
No binary output difference are seen from this change.
[1] commit 3364c6ce23c6 ("arm64: atomics: lse: Dereference matching size")
Cc: "Peter Zijlstra (Intel)" <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Greg Ungerer <[email protected]>
Cc: [email protected]
Acked-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/lkml/CAMuHMdVRrD+2zKoHxAaQdDuiK5JFDanbv0SJ91OdWfx+eyekPQ@mail.gmail.com
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions