aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2017-08-24 15:42:12 +0800
committerJoerg Roedel <jroedel@suse.de>2017-08-28 11:26:21 +0200
commit419399804382d1aa7a3fc652915e8f3b61aff941 (patch)
tree468c67b725d67bd69670de5f8f64ebd786b3bf37 /include/linux/iommu.h
parentiommu/mediatek: Fix a build fail of m4u_type (diff)
downloadwireguard-linux-419399804382d1aa7a3fc652915e8f3b61aff941.tar.xz
wireguard-linux-419399804382d1aa7a3fc652915e8f3b61aff941.zip
iommu/mediatek: Fix a build warning of BIT(32) in ARM
The commit ("iommu/mediatek: Enlarge the validate PA range for 4GB mode") introduce the following build warning while ARCH=arm: drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_iova_to_phys': include/linux/bitops.h:6:24: warning: left shift count >= width of type [-Wshift-count-overflow] #define BIT(nr) (1UL << (nr)) ^ >> drivers/iommu/mtk_iommu.c:407:9: note: in expansion of macro 'BIT' pa |= BIT(32); drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_probe': include/linux/bitops.h:6:24: warning: left shift count >= width of type [-Wshift-count-overflow] #define BIT(nr) (1UL << (nr)) ^ drivers/iommu/mtk_iommu.c:589:35: note: in expansion of macro 'BIT' data->enable_4GB = !!(max_pfn > (BIT(32) >> PAGE_SHIFT)); Use BIT_ULL instead of BIT. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
0 files changed, 0 insertions, 0 deletions