diff options
| author | Alex Elder <elder@linaro.org> | 2021-03-23 04:05:05 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-03-24 03:15:23 +0300 |
| commit | 437c78f976f5b39fc4b2a1c65903a229f55912dd (patch) | |
| tree | a37b648b0968bcdb419dd4e6c8ad33adb53ed45e /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | ed97143e00982e1cab3544977f33b94a6de2e6fa (diff) | |
| download | linux-437c78f976f5b39fc4b2a1c65903a229f55912dd.tar.xz | |
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/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
