Re: [PATCH] iommu/mediatek: fix out-of-range warning with clang

2021-09-28 Thread Joerg Roedel
On Mon, Sep 27, 2021 at 02:18:44PM +0200, Arnd Bergmann wrote: > drivers/iommu/mtk_iommu.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks. ___ iommu mailing list iommu@lists.linux-foundation.org

Re: [PATCH] iommu/mediatek: fix out-of-range warning with clang

2021-09-27 Thread Yong Wu
On Mon, 2021-09-27 at 14:18 +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang-14 notices that a comparison is never true when > CONFIG_PHYS_ADDR_T_64BIT is disabled: > > drivers/iommu/mtk_iommu.c:553:34: error: result of comparison of > constant 5368709120 with expression of type

[PATCH] iommu/mediatek: fix out-of-range warning with clang

2021-09-27 Thread Arnd Bergmann
From: Arnd Bergmann clang-14 notices that a comparison is never true when CONFIG_PHYS_ADDR_T_64BIT is disabled: drivers/iommu/mtk_iommu.c:553:34: error: result of comparison of constant 5368709120 with expression of type 'phys_addr_t' (aka 'unsigned int') is always false