From: kernel test robot <lkp@intel.com>
To: "Chen-Yu Tsai" <wens@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [wens:sunxi-wip 33/36] drivers/iommu/sun50i-iommu.c:262:9: warning: shift count >= width of type
Date: Sat, 31 Oct 2026 02:48:01 +0100 [thread overview]
Message-ID: <202610310227.axf3ZxDV-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git sunxi-wip
head: e8e10ee67982c55fd3900953641c680a2fbef1c6
commit: fb330cb5c647353254defd7befae00c11c3e49b9 [33/36] iommu/sun50i: Allow mapping 3GB~4GB physical address
config: powerpc-randconfig-2001-20261030 (https://download.01.org/0day-ci/archive/20261031/202610310227.axf3ZxDV-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 8f6b51ca8bab1d49006ddaa042bc7e4e7306975d)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261031/202610310227.axf3ZxDV-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610310227.axf3ZxDV-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iommu/sun50i-iommu.c:262:9: warning: shift count >= width of type [-Wshift-count-overflow]
262 | pa |= BIT(32);
| ^~~~~~~
include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
7 | #define BIT(nr) (UL(1) << (nr))
| ^ ~~~~
1 warning generated.
vim +262 drivers/iommu/sun50i-iommu.c
255
256 static phys_addr_t sun50i_pte_get_page_address(u32 pte)
257 {
258 phys_addr_t pa = pte & SUN50I_PTE_PAGE_ADDRESS_MASK;
259
260 /* un-truncate the physical address */
261 if (pa < memblock_start_of_DRAM())
> 262 pa |= BIT(32);
263
264 return pa;
265 }
266
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-31 1:49 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=202610310227.axf3ZxDV-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=wens@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.