diff options
author | Yong Wu | 2017-08-24 09:42:12 +0200 |
---|---|---|
committer | Joerg Roedel | 2017-08-28 11:26:21 +0200 |
commit | 419399804382d1aa7a3fc652915e8f3b61aff941 (patch) | |
tree | 468c67b725d67bd69670de5f8f64ebd786b3bf37 /sound/core/seq/seq_queue.c | |
parent | iommu/mediatek: Fix a build fail of m4u_type (diff) | |
download | kernel-qcow2-linux-419399804382d1aa7a3fc652915e8f3b61aff941.tar.gz kernel-qcow2-linux-419399804382d1aa7a3fc652915e8f3b61aff941.tar.xz kernel-qcow2-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 'sound/core/seq/seq_queue.c')
0 files changed, 0 insertions, 0 deletions