diff options
author | Will Deacon <[email protected]> | 2015-02-16 18:38:20 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2015-02-25 13:37:32 +0100 |
commit | 367bd978b81c2c7bcdcacdd3156645a27fab0676 (patch) | |
tree | f64011e8248831b77a25acac1349b16ca621e650 /lib/mpi/mpiutil.c | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
iommu/io-pgtable-arm: Fix self-test WARNs on i386
Various build/boot bots have reported WARNs being triggered by the ARM
iopgtable LPAE self-tests on i386 machines.
This boils down to two instances of right-shifting a 32-bit unsigned
long (i.e. an iova) by more than the size of the type. On 32-bit ARM,
this happens to give us zero, hence my testing didn't catch this
earlier.
This patch fixes the issue by using DIV_ROUND_UP and explicit case to
to avoid the erroneous shifts.
Reported-by: Fengguang Wu <[email protected]>
Reported-by: Huang Ying <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions