* [chrome-os:chromeos-6.1 99/104] drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam-raw.c:2378:6: error: variable 'raw_status' set but not used
@ 2024-05-10 3:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-10 3:28 UTC (permalink / raw)
To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.1
head: cb75f24663df84986d5056df93e821564be6d886
commit: 3d4651aa212e1a671e15a4a8411b748bb70a8585 [99/104] CHROMIUM: media: platform: mediatek: isp: isp_7x camsys driver migration
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240510/202405101105.aU6kScH9-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project b910bebc300dafb30569cecc3017b446ea8eafa0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240510/202405101105.aU6kScH9-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/202405101105.aU6kScH9-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam-raw.c:15:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
In file included from include/linux/mm.h:1776:
include/linux/vmstat.h:502:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion]
502 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
503 | item];
| ~~~~
include/linux/vmstat.h:509:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion]
509 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
510 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:516:36: error: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Werror,-Wenum-enum-conversion]
516 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:521:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion]
521 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
522 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:530:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion]
530 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
531 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam-raw.c:2378:6: error: variable 'raw_status' set but not used [-Werror,-Wunused-but-set-variable]
2378 | int raw_status = 0;
| ^
6 errors generated.
vim +/raw_status +2378 drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam-raw.c
2372
2373 int mtk_cam_s_data_raw_select(struct mtk_cam_request_stream_data *s_data,
2374 struct mtkcam_ipi_input_param *cfg_in_param)
2375 {
2376 struct mtk_cam_ctx *ctx;
2377 struct mtk_raw_pipeline *pipe;
> 2378 int raw_status = 0;
2379 bool selected = false;
2380
2381 ctx = mtk_cam_s_data_get_ctx(s_data);
2382 pipe = ctx->pipe;
2383 raw_status = mtk_raw_available_resource(pipe->raw);
2384 raw_status &= ~pipe->enabled_raw;
2385
2386 mtk_raw_available_resource(pipe->raw);
2387
2388 if (!selected)
2389 return -EINVAL;
2390
2391 return 0;
2392 }
2393
--
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:[~2024-05-10 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 3:28 [chrome-os:chromeos-6.1 99/104] drivers/media/platform/mediatek/isp/isp_7x/camsys/mtk_cam-raw.c:2378:6: error: variable 'raw_status' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).