* [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
@ 2023-11-08 0:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-08 0:59 UTC (permalink / raw)
To: Jonas Karlman
Cc: oe-kbuild-all, Hans Verkuil, Alex Bee, Nicolas Dufresne,
Sebastian Fricke
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-08 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-08 0:59 [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 kernel test robot
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.