From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202201051316.37zGOnYo-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3068 bytes --]
Hi Roy-CW,
FYI, the error/warning still remains.
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: c1bccbd19bf74ce7393ae038f9d54e3e7add64db
commit: 53806600d759c71fc68bd616559de2035eed9398 [9848/9999] CHROMIUM: media: 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=1 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/chromiumos/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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/media/platform/mtk-mdp3/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c: In function 'mdp_fmt_get_hyfbc_plane_size':
drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c:159:13: warning: variable 'c_header_ofst' set but not used [-Wunused-but-set-variable]
159 | u32 c_header_ofst = 0;
| ^~~~~~~~~~~~~
>> drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c:157:13: warning: variable 'y_header_ofst' set but not used [-Wunused-but-set-variable]
157 | u32 y_header_ofst = 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 color)
151 {
152 u32 y_data_size = 0;
153 u32 c_data_size = 0;
154 u32 y_header_size = 0;
155 u32 c_header_size = 0;
156 u32 y_data_ofst = 0;
> 157 u32 y_header_ofst = 0;
158 u32 c_data_ofst = 0;
> 159 u32 c_header_ofst = 0;
160
161 y_data_size = (((width + 63) >> 6) << 6) * (((height + 63) >> 6) << 6);
162 y_header_size = y_data_size >> 6;
163 if (MDP_COLOR_IS_10BIT_PACKED(color))
164 y_data_size = (y_data_size * 6) >> 2;
165
166 c_data_size = y_data_size >> 1;
167 c_header_size = (((y_header_size >> 1) + 63) >> 6) << 6;
168
169 // Setup source buffer base
170 y_data_ofst = ((y_header_size + 4095) >> 12) << 12; // align 4k
171 y_header_ofst = y_data_ofst - y_header_size;
172 c_data_ofst = ((y_data_ofst + y_data_size + c_header_size + 4095) >> 12) << 12; // align 4k
173 c_header_ofst = 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
reply other threads:[~2022-01-05 5:27 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=202201051316.37zGOnYo-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.