From: kernel test robot <lkp@intel.com>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: oe-kbuild-all@lists.linux.dev, Hans Verkuil <hverkuil@xs4all.nl>,
Alex Bee <knaerzche@gmail.com>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Sebastian Fricke <sebastian.fricke@collabora.com>
Subject: [hverkuil-media-tree:for-v6.8c 199/204] drivers/staging/media/rkvdec/rkvdec-hevc.c:429:83: warning: variable 'new_value' set but not used
Date: Wed, 8 Nov 2023 08:59:20 +0800 [thread overview]
Message-ID: <202311080826.DOL8PLZS-lkp@intel.com> (raw)
tree: git://linuxtv.org/hverkuil/media_tree.git for-v6.8c
head: 9c2abee4a6b8ceaf853c15f135d5fa28ae60d0a7
commit: 8c17b9a51c9d965ea28067f61fb321f2618dd5ed [199/204] media: rkvdec: Add HEVC backend
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20231108/202311080826.DOL8PLZS-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231108/202311080826.DOL8PLZS-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/202311080826.DOL8PLZS-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/staging/media/rkvdec/rkvdec-hevc.c: In function 'transpose_and_flatten_matrices':
>> drivers/staging/media/rkvdec/rkvdec-hevc.c:429:83: warning: variable 'new_value' set but not used [-Wunused-but-set-variable]
429 | int i, j, row, x_offset, matrix_offset, rot_index, y_offset, matrix_size, new_value;
| ^~~~~~~~~
vim +/new_value +429 drivers/staging/media/rkvdec/rkvdec-hevc.c
416
417 /*
418 * Flip one or more matrices along their main diagonal and flatten them
419 * before writing it to the memory.
420 * Convert:
421 * ABCD AEIM
422 * EFGH => BFJN => AEIMBFJNCGKODHLP
423 * IJKL CGKO
424 * MNOP DHLP
425 */
426 static void transpose_and_flatten_matrices(u8 *output, const u8 *input,
427 int matrices, int row_length)
428 {
> 429 int i, j, row, x_offset, matrix_offset, rot_index, y_offset, matrix_size, new_value;
430
431 matrix_size = row_length * row_length;
432 for (i = 0; i < matrices; i++) {
433 row = 0;
434 x_offset = 0;
435 matrix_offset = i * matrix_size;
436 for (j = 0; j < matrix_size; j++) {
437 y_offset = j - (row * row_length);
438 rot_index = y_offset * row_length + x_offset;
439 new_value = *(input + i * matrix_size + j);
440 output[matrix_offset + rot_index] = *(input + i * matrix_size + j);
441 if ((j + 1) % row_length == 0) {
442 row += 1;
443 x_offset += 1;
444 }
445 }
446 }
447 }
448
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-11-08 1:02 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=202311080826.DOL8PLZS-lkp@intel.com \
--to=lkp@intel.com \
--cc=hverkuil@xs4all.nl \
--cc=jonas@kwiboo.se \
--cc=knaerzche@gmail.com \
--cc=nicolas.dufresne@collabora.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sebastian.fricke@collabora.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 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.