[asahilinux:bits/240-isp 55/56] drivers/media/platform/apple/avd/avd-hw.c:96:58: warning: shift count >= width of type

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/AsahiLinux/linux bits/240-isp
head:   edd1529cbf30f69240acea99fa8225683c555200
commit: 9d77b27426e338bbf4f4df0676c1e064e046527e [55/56] media: apple: add avd driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260711/[email protected]/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project b3e6e6dabdc02153552a64fc74ff5c7532447eed)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/[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 >>):

>> drivers/media/platform/apple/avd/avd-hw.c:96:58: warning: shift count >= width of type [-Wshift-count-overflow]
      96 |                 w32(AVD_V4_VP_INSN_FIFO_IOVA_HI + (fifo_idx * 4), addr >> 32);
         |                                                                        ^  ~~
   drivers/media/platform/apple/avd/avd-hw.c:110:57: warning: shift count >= width of type [-Wshift-count-overflow]
     110 |         w32(AVD_V5_VP_INSN_FIFO_IOVA_HI + (fifo_idx * 4), addr >> 32);
         |                                                                ^  ~~
   2 warnings generated.
--
   In file included from drivers/media/platform/apple/avd/avd-h264.c:24:
>> drivers/media/platform/apple/avd/avd-inst.h:41:29: warning: shift count >= width of type [-Wshift-count-overflow]
      41 |                 push(avd, ctx, (u32)(addr >> 32));
         |                                           ^  ~~
>> drivers/media/platform/apple/avd/avd-h264.c:383:20: warning: shift count >= width of type [-Wshift-count-overflow]
     383 |                         | (u32)(slc_a84 >> 32), "slc_a7c_cmd_set_coded_slice");
         |                                         ^  ~~
   2 warnings generated.


vim +96 drivers/media/platform/apple/avd/avd-hw.c

    89	
    90	void t8112_configure_stream(struct avd_dev *avd, dma_addr_t addr, u8 fifo_idx,
    91				  u32 vp_slot)
    92	{
    93		if (avd->variant->quirks & AVD_QUIRK_LSR) {
    94			w32(AVD_V4_VP_INSN_FIFO_IOVA_LO + (fifo_idx * 4), addr >> 8);
    95		} else {
  > 96			w32(AVD_V4_VP_INSN_FIFO_IOVA_HI + (fifo_idx * 4), addr >> 32);
    97			w32(AVD_V4_VP_INSN_FIFO_IOVA_LO + (fifo_idx * 4), addr & 0xffffffff);
    98		}
    99		w32(AVD_V4_VP_INSN_FIFO_MASK + (fifo_idx * 4), 0);
   100		w32(AVD_V4_VP_INSN_FIFO_CACH + (fifo_idx * 4), 0);
   101		w32(AVD_V4_VP_INSN_FIFO_XFER + (fifo_idx * 4), 0);
   102	
   103		m32(AVD_V4_VP_CTRL_CM3_IRQ_MASK + (vp_slot * 4), AVD_VP_CM3_MASK);
   104		m32(AVD_V4_PP_CTRL_CM3_IRQ_MASK, AVD_PP_CM3_MASK);
   105	}
   106	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.