include/vdso/bits.h:7:40: warning: left shift count >= width of type
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux.git riscv head: 6c21eb174c6c7aebdecaf5c39e3100e6beb35faa commit: 6c21eb174c6c7aebdecaf5c39e3100e6beb35faa [2/2] iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20260512/[email protected]/config) compiler: arc-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from include/linux/bits.h:5,
from include/linux/generic_pt/common.h:10, from drivers/iommu/generic_pt/fmt/iommu_template.h:33, from drivers/iommu/generic_pt/fmt/iommu_riscv64.c:11:
>> include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow]
7 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/iommu/generic_pt/fmt/riscv.h:67:22: note: in expansion of macro 'BIT'
67 | RISCVPT_NC = BIT(61),
| ^~~
>> include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow]
7 | #define BIT(nr) (UL(1) << (nr))
| ^~
drivers/iommu/generic_pt/fmt/riscv.h:68:22: note: in expansion of macro 'BIT'
68 | RISCVPT_IO = BIT(62),
| ^~~vim +7 include/vdso/bits.h
3945ff37d2f48d Vincenzo Frascino 2020-03-20 63945ff37d2f48d Vincenzo Frascino 2020-03-20 @7 #define BIT(nr) (UL(1) << (nr))cbdb1f163af2bb Andy Shevchenko 2022-11-28 8 #define BIT_ULL(nr) (ULL(1) << (nr))3945ff37d2f48d Vincenzo Frascino 2020-03-20 9
:::::: The code at line 7 was first introduced by commit
:::::: 3945ff37d2f48d39fd1751d282c80176654049e4 linux/bits.h: Extract common header for vDSO
:::::: TO: Vincenzo Frascino <[email protected]> :::::: CC: Thomas Gleixner <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki