summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ppdev.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-02-16 18:38:20 +0000
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:14:48 -0700
commitaaf63985193d717bba56d601a9521dbc412e0b50 (patch)
treef9f55ccdb9ba97c5f36abe07f79674e6a4a98bb5 /include/uapi/linux/ppdev.h
parentaaa7dcaf86f2d997659a374843a55d3b15bb821f (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 <fengguang.wu@intel.com> Reported-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/uapi/linux/ppdev.h')
0 files changed, 0 insertions, 0 deletions