aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2022-02-09 20:47:58 +0200
committerWill Deacon <[email protected]>2022-02-15 16:51:26 +0000
commit8ddf4eff71e12e4295b54ac8b02439ad22271fd2 (patch)
tree796e3ccd8c57fcfe6af7298f135031743832c1e3 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parent30de2b541af98179780054836b48825fcfba4408 (diff)
perf/smmuv3: Don't cast parameter in bit operations
While in this particular case it would not be a (critical) issue, the pattern itself is bad and error prone in case somebody blindly copies to their code. Don't cast parameter to unsigned long pointer in the bit operations. Instead copy to a local variable on stack of a proper type and use. Note, new compilers might warn on this line for potential outbound access. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions