summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-03-22 20:05:05 -0500
committerDavid S. Miller <davem@davemloft.net>2021-03-23 17:15:23 -0700
commit437c78f976f5b39fc4b2a1c65903a229f55912dd (patch)
treea37b648b0968bcdb419dd4e6c8ad33adb53ed45e /tools/testing/selftests/bpf/prog_tests/autoload.c
parented97143e00982e1cab3544977f33b94a6de2e6fa (diff)
net: ipa: avoid 64-bit modulus
It is possible for a 32 bit x86 build to use a 64 bit DMA address. There are two remaining spots where the IPA driver does a modulo operation to check alignment of a DMA address, and under certain conditions this can lead to a build error on i386 (at least). The alignment checks we're doing are for power-of-2 values, and this means the lower 32 bits of the DMA address can be used. This ensures both operands to the modulo operator are 32 bits wide. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Alex Elder <elder@linaro.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions