From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Joerg Roedel <jroedel@suse.de>
Subject: drivers/iommu/mtk_iommu.c:438:29: warning: comparison is always false due to limited range of data type
Date: Mon, 22 Jun 2020 19:03:12 +0800 [thread overview]
Message-ID: <202006221907.TuIvC5eP%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2492 bytes --]
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625d3449788f85569096780592549d0340e9c0c7
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
date: 4 months ago
config: i386-randconfig-r012-20200622 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_iova_to_phys':
>> drivers/iommu/mtk_iommu.c:438:29: warning: comparison is always false due to limited range of data type [-Wtype-limits]
438 | if (data->enable_4GB && pa >= MTK_IOMMU_4GB_MODE_REMAP_BASE)
| ^~
vim +438 drivers/iommu/mtk_iommu.c
4d689b61944589 Robin Murphy 2017-09-28 429
0df4fabe208d95 Yong Wu 2016-02-23 430 static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain,
0df4fabe208d95 Yong Wu 2016-02-23 431 dma_addr_t iova)
0df4fabe208d95 Yong Wu 2016-02-23 432 {
0df4fabe208d95 Yong Wu 2016-02-23 433 struct mtk_iommu_domain *dom = to_mtk_domain(domain);
30e2fccf951238 Yong Wu 2017-08-21 434 struct mtk_iommu_data *data = mtk_iommu_get_m4u_data();
0df4fabe208d95 Yong Wu 2016-02-23 435 phys_addr_t pa;
0df4fabe208d95 Yong Wu 2016-02-23 436
0df4fabe208d95 Yong Wu 2016-02-23 437 pa = dom->iop->iova_to_phys(dom->iop, iova);
b4dad40e4f35bb Yong Wu 2019-08-24 @438 if (data->enable_4GB && pa >= MTK_IOMMU_4GB_MODE_REMAP_BASE)
b4dad40e4f35bb Yong Wu 2019-08-24 439 pa &= ~BIT_ULL(32);
30e2fccf951238 Yong Wu 2017-08-21 440
0df4fabe208d95 Yong Wu 2016-02-23 441 return pa;
0df4fabe208d95 Yong Wu 2016-02-23 442 }
0df4fabe208d95 Yong Wu 2016-02-23 443
:::::: The code at line 438 was first introduced by commit
:::::: b4dad40e4f35bbf2393f35f4492acf799eb8136d iommu/mediatek: Adjust the PA for the 4GB Mode
:::::: TO: Yong Wu <yong.wu@mediatek.com>
:::::: CC: Joerg Roedel <jroedel@suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44266 bytes --]
reply other threads:[~2020-06-22 11:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202006221907.TuIvC5eP%lkp@intel.com \
--to=lkp@intel.com \
--cc=jroedel@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox