Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [wens:sunxi-wip 33/36] drivers/iommu/sun50i-iommu.c:262:9: warning: shift count >= width of type
@ 2026-10-31  1:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-31  1:48 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-31  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-31  1:48 [wens:sunxi-wip 33/36] drivers/iommu/sun50i-iommu.c:262:9: warning: shift count >= width of type kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox