Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: sofus <sofus.c@icloud.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Janne Grunau <j@jannau.net>
Subject: [asahilinux:bits/240-isp 55/56] drivers/media/platform/apple/avd/avd-hw.c:96:58: warning: shift count >= width of type
Date: Sat, 11 Jul 2026 12:17:46 +0800	[thread overview]
Message-ID: <202607111256.m7DRIagP-lkp@intel.com> (raw)

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/202607111256.m7DRIagP-lkp@intel.com/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/202607111256.m7DRIagP-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/202607111256.m7DRIagP-lkp@intel.com/

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

                 reply	other threads:[~2026-07-11  4:18 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=202607111256.m7DRIagP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=j@jannau.net \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sofus.c@icloud.com \
    /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