Content-Type: multipart/mixed; boundary="===============8450198925846382810==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v1 2/2] media: staging: tegra-vde: Support V4L stateless video decoder API Date: Thu, 13 Jan 2022 04:05:18 +0800 Message-ID: <202201130310.BFtsDEXe-lkp@intel.com> In-Reply-To: <20220112153952.1291-3-digetx@gmail.com> List-Id: --===============8450198925846382810== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Dmitry, I love your patch! Perhaps something to improve: [auto build test WARNING on media-tree/master] [also build test WARNING on next-20220112] [cannot apply to v5.16] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/Add-V4L-st= ateless-video-decoder-API-support-to-NVIDIA-Tegra-driver/20220112-234115 base: git://linuxtv.org/media_tree.git master config: powerpc-randconfig-s031-20220112 (https://download.01.org/0day-ci/a= rchive/20220113/202201130310.BFtsDEXe-lkp(a)intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/3b11791070fd9de6cd368f285= 78ebab731386a83 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Dmitry-Osipenko/Add-V4L-stateless-= video-decoder-API-support-to-NVIDIA-Tegra-driver/20220112-234115 git checkout 3b11791070fd9de6cd368f28578ebab731386a83 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Dp= owerpc SHELL=3D/bin/bash drivers/staging/media/tegra-vde/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/staging/media/tegra-vde/h264_reader.c:57:15: sparse: sparse: cas= t to restricted __be32 >> drivers/staging/media/tegra-vde/h264_reader.c:57:15: sparse: sparse: cas= t to restricted __be32 >> drivers/staging/media/tegra-vde/h264_reader.c:57:15: sparse: sparse: cas= t to restricted __be32 >> drivers/staging/media/tegra-vde/h264_reader.c:57:15: sparse: sparse: cas= t to restricted __be32 vim +57 drivers/staging/media/tegra-vde/h264_reader.c 44 = 45 static inline u8 emulation_escape(struct bitstream_reader *reader, u= 32 offset, 46 u8 data, bool inc_offset, bool *escaped) 47 { 48 u32 seq; 49 = 50 if (data !=3D 0x03 || !reader->rbsp_mode) 51 return data; 52 = 53 if (offset < 2 || offset =3D=3D reader->bitstream_end) 54 return data; 55 = 56 seq =3D *((u32 *)(reader->data_ptr + offset - 2)); > 57 seq =3D be32_to_cpu(seq); 58 = 59 switch (seq) { 60 case 0x00000300: 61 case 0x00000301: 62 case 0x00000302: 63 case 0x00000303: 64 if (inc_offset) 65 reader->data_offset++; 66 = 67 if (escaped) 68 *escaped =3D true; 69 = 70 return seq & 0xFF; 71 default: 72 break; 73 } 74 = 75 return data; 76 } 77 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8450198925846382810==--