summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2017-08-24 10:42:12 +0300
committerJoerg Roedel <jroedel@suse.de>2017-08-28 12:26:21 +0300
commit419399804382d1aa7a3fc652915e8f3b61aff941 (patch)
tree468c67b725d67bd69670de5f8f64ebd786b3bf37 /net/ipv6
parent4f1c8ea16b643be339f0e80b3535bc5b5fe8f9a3 (diff)
downloadlinux-419399804382d1aa7a3fc652915e8f3b61aff941.tar.xz
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 'net/ipv6')
0 files changed, 0 insertions, 0 deletions