* [openeuler:OLK-6.6 2527/2527] drivers/media/v4l2-core/v4l2-subdev.c:2253:10: error: call to undeclared function 'v4l2_subdev_get_locked_active_state'; ISO C99 and later do not support implicit function declarations
@ 2025-07-18 7:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-18 7:55 UTC (permalink / raw)
To: kernel; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: cbc572af8c3daa87a87df19c570fb3fd3ed99022
commit: c1be6d998806425f28600e867a8e9a2dd9bac741 [2527/2527] media: subdev: Add v4l2_subdev_is_streaming()
config: x86_64-buildonly-randconfig-004-20250718 (https://download.01.org/0day-ci/archive/20250718/202507181525.PYgxRhvq-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250718/202507181525.PYgxRhvq-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/202507181525.PYgxRhvq-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-subdev.c:2253:10: error: call to undeclared function 'v4l2_subdev_get_locked_active_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2253 | state = v4l2_subdev_get_locked_active_state(sd);
| ^
>> drivers/media/v4l2-core/v4l2-subdev.c:2253:8: error: incompatible integer to pointer conversion assigning to 'struct v4l2_subdev_state *' from 'int' [-Wint-conversion]
2253 | state = v4l2_subdev_get_locked_active_state(sd);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/v4l2_subdev_get_locked_active_state +2253 drivers/media/v4l2-core/v4l2-subdev.c
2242
2243 bool v4l2_subdev_is_streaming(struct v4l2_subdev *sd)
2244 {
2245 struct v4l2_subdev_state *state;
2246
2247 if (!v4l2_subdev_has_op(sd, pad, enable_streams))
2248 return sd->s_stream_enabled;
2249
2250 if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS))
2251 return !!sd->enabled_pads;
2252
> 2253 state = v4l2_subdev_get_locked_active_state(sd);
2254
2255 for (unsigned int i = 0; i < state->stream_configs.num_configs; ++i) {
2256 const struct v4l2_subdev_stream_config *cfg;
2257
2258 cfg = &state->stream_configs.configs[i];
2259
2260 if (cfg->enabled)
2261 return true;
2262 }
2263
2264 return false;
2265 }
2266 EXPORT_SYMBOL_GPL(v4l2_subdev_is_streaming);
2267
--
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:[~2025-07-18 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18 7:55 [openeuler:OLK-6.6 2527/2527] drivers/media/v4l2-core/v4l2-subdev.c:2253:10: error: call to undeclared function 'v4l2_subdev_get_locked_active_state'; ISO C99 and later do not support implicit function declarations 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).