drivers/media/platform/qcom/iris/iris_ctrls.c:1635:13: warning: unused variable 'ret'
kernel test robot
build bottree: https://github.com/intel-lab-lkp/linux/commits/Deepa-Guthyappa-Madivalara/media-v4l2-core-add-new-control-type-V4L2_CTRL_TYPE_S8/20260930-113024 head: aff4d347c60c51044e7f911399fbd7ea2e63a2a8 commit: aff4d347c60c51044e7f911399fbd7ea2e63a2a8 media: iris: Add BUF_ROIMB_DELTAQP metadata buffer for ROI delta QP date: 5 days ago config: nios2-randconfig-r2202-20261005 (https://download.01.org/0day-ci/archive/20261005/[email protected]/config) compiler: nios2-linux-gcc (GCC) 11.5.0 smatch: v0.5.0-9187-g5189e3fb reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
drivers/media/platform/qcom/iris/iris_ctrls.c: In function 'iris_set_roi_params':
>> drivers/media/platform/qcom/iris/iris_ctrls.c:1635:13: warning: unused variable 'ret' [-Wunused-variable]
1635 | int ret = 0;
| ^~~vim +/ret +1635 drivers/media/platform/qcom/iris/iris_ctrls.c
1623
1624 int iris_set_roi_params(struct iris_inst *inst, u32 plane)
1625 {
1626 struct iris_buffers *buffers = &inst->buffers[BUF_ROIMB_DELTAQP];
1627 u32 height = inst->fmt_src->fmt.pix_mp.height;
1628 u32 width = inst->fmt_src->fmt.pix_mp.width;
1629 u32 metadata_header_bytes = 256;
1630 u32 lcu_height = 0;
1631 u32 lcu_width = 0;
1632 u32 lcu_size = 16;
1633 u32 n_shift = 0;
1634 u32 size = 0;
> 1635 int ret = 0;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki