diff options
author | Will Deacon <[email protected]> | 2020-04-14 23:13:50 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-04-15 21:36:41 +0100 |
commit | 9a8939490d401fefddf53cd5e4cb3e20a52b98a7 (patch) | |
tree | 74e920bbc7758663af84c675fbc9a000efd46a4e /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 514cc55b01eb7f34f9d1d4518f81e42a633c784e (diff) |
net: tls: Avoid assigning 'const' pointer to non-const pointer
tls_build_proto() uses WRITE_ONCE() to assign a 'const' pointer to a
'non-const' pointer. Cleanups to the implementation of WRITE_ONCE() mean
that this will give rise to a compiler warning, just like a plain old
assignment would do:
| net/tls/tls_main.c: In function ‘tls_build_proto’:
| ./include/linux/compiler.h:229:30: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| net/tls/tls_main.c:640:4: note: in expansion of macro ‘smp_store_release’
| 640 | smp_store_release(&saved_tcpv6_prot, prot);
| | ^~~~~~~~~~~~~~~~~
Drop the const qualifier from the local 'prot' variable, as it isn't
needed.
Cc: Boris Pismenny <[email protected]>
Cc: Aviad Yehezkel <[email protected]>
Cc: John Fastabend <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions