From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7622623601909133885==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [chrome-os:chromeos-5.10 9848/9999] drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c:157:13: warning: variable 'y_header_ofst' set but not used Date: Wed, 05 Jan 2022 13:27:16 +0800 Message-ID: <202201051316.37zGOnYo-lkp@intel.com> List-Id: --===============7622623601909133885== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Roy-CW, FYI, the error/warning still remains. tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chr= omeos-5.10 head: c1bccbd19bf74ce7393ae038f9d54e3e7add64db commit: 53806600d759c71fc68bd616559de2035eed9398 [9848/9999] CHROMIUM: medi= a: platform: mtk-mdp3: Add support MT8195 config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20220105= /202201051316.37zGOnYo-lkp(a)intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add chrome-os https://chromium.googlesource.com/chromium= os/third_party/kernel git fetch --no-tags chrome-os chromeos-5.10 git checkout 53806600d759c71fc68bd616559de2035eed9398 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dia64 SHELL=3D/bin/bash drivers/media/platform/mtk-mdp= 3/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c: In function 'mdp_fmt_ge= t_hyfbc_plane_size': drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c:159:13: warning: variabl= e 'c_header_ofst' set but not used [-Wunused-but-set-variable] 159 | u32 c_header_ofst =3D 0; | ^~~~~~~~~~~~~ >> drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c:157:13: warning: variabl= e 'y_header_ofst' set but not used [-Wunused-but-set-variable] 157 | u32 y_header_ofst =3D 0; | ^~~~~~~~~~~~~ vim +/y_header_ofst +157 drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c 149 = 150 static u32 mdp_fmt_get_hyfbc_plane_size(u32 width, u32 height, u32 c= olor) 151 { 152 u32 y_data_size =3D 0; 153 u32 c_data_size =3D 0; 154 u32 y_header_size =3D 0; 155 u32 c_header_size =3D 0; 156 u32 y_data_ofst =3D 0; > 157 u32 y_header_ofst =3D 0; 158 u32 c_data_ofst =3D 0; > 159 u32 c_header_ofst =3D 0; 160 = 161 y_data_size =3D (((width + 63) >> 6) << 6) * (((height + 63) >> 6) = << 6); 162 y_header_size =3D y_data_size >> 6; 163 if (MDP_COLOR_IS_10BIT_PACKED(color)) 164 y_data_size =3D (y_data_size * 6) >> 2; 165 = 166 c_data_size =3D y_data_size >> 1; 167 c_header_size =3D (((y_header_size >> 1) + 63) >> 6) << 6; 168 = 169 // Setup source buffer base 170 y_data_ofst =3D ((y_header_size + 4095) >> 12) << 12; // align 4k 171 y_header_ofst =3D y_data_ofst - y_header_size; 172 c_data_ofst =3D ((y_data_ofst + y_data_size + c_header_size + 4095)= >> 12) << 12; // align 4k 173 c_header_ofst =3D c_data_ofst - c_header_size; 174 = 175 return (c_data_ofst + c_data_size); 176 } 177 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============7622623601909133885==--