diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-07-25 10:58:41 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-02 22:22:19 +1000 |
commit | c3062ede9927053754ba27b280afe00b9b31b37a (patch) | |
tree | 4e0203e5987cd828c1d9d1586e5598664a8971ad /net/ipv4/ip_options.c | |
parent | fc6732a8556c1099b89f4777a96bd6a1ae5a4378 (diff) |
selftests/powerpc/ptrace: Declare test temporary variables as volatile
While the target is volatile, the temporary variables used to access the
target cast away the volatile. This is undefined behaviour, and a
compiler may optimise away/reorder these accesses, breaking the test.
This was observed with GCC 13.1.1, but it can be difficult to reproduce
because of the dependency on compiler behaviour.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230725005841.28854-5-bgray@linux.ibm.com
Diffstat (limited to 'net/ipv4/ip_options.c')
0 files changed, 0 insertions, 0 deletions