[hverkuil-media:for-v5.15h 3/6] drivers/media/v4l2-core/v4l2-async.c:300:4: error: implicit declaration of function 'v4l2_async_notifier_call_unbind'

From: kernel test robot
Date: Mon Aug 09 2021 - 12:22:25 EST


tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.15h
head: 9e8ab45126fe00e7f814344657d6e82a02e1982f
commit: 2b5f8be6ab6dadeaca7c8c7939258fe90c4714c1 [3/6] media: v4l2-async: Call post_register() subdev op
config: hexagon-buildonly-randconfig-r004-20210809 (attached as .config)
compiler: clang version 12.0.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hverkuil-media git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media for-v5.15h
git checkout 2b5f8be6ab6dadeaca7c8c7939258fe90c4714c1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/media/v4l2-core/v4l2-async.c:300:4: error: implicit declaration of function 'v4l2_async_notifier_call_unbind' [-Werror,-Wimplicit-function-declaration]
v4l2_async_notifier_call_unbind(notifier, sd, sd->asd);
^
drivers/media/v4l2-core/v4l2-async.c:300:4: note: did you mean 'v4l2_async_nf_call_unbind'?
drivers/media/v4l2-core/v4l2-async.c:37:13: note: 'v4l2_async_nf_call_unbind' declared here
static void v4l2_async_nf_call_unbind(struct v4l2_async_notifier *n,
^
1 error generated.


vim +/v4l2_async_notifier_call_unbind +300 drivers/media/v4l2-core/v4l2-async.c

277
278 static int v4l2_async_match_notify(struct v4l2_async_notifier *notifier,
279 struct v4l2_device *v4l2_dev,
280 struct v4l2_subdev *sd,
281 struct v4l2_async_subdev *asd)
282 {
283 struct v4l2_async_notifier *subdev_notifier;
284 int ret;
285
286 ret = v4l2_device_register_subdev(v4l2_dev, sd);
287 if (ret < 0)
288 return ret;
289
290 ret = v4l2_async_nf_call_bound(notifier, sd, asd);
291 if (ret < 0) {
292 v4l2_device_unregister_subdev(sd);
293 return ret;
294 }
295
296 if (!(notifier->flags & V4L2_ASYNC_NOTIFIER_DEFER_POST_REGISTER) &&
297 sd->ops->core && sd->ops->core->post_register) {
298 ret = sd->ops->core->post_register(sd);
299 if (ret) {
> 300 v4l2_async_notifier_call_unbind(notifier, sd, sd->asd);
301 v4l2_device_unregister_subdev(sd);
302 return ret;
303 }
304 }
305
306 /* Remove from the waiting list */
307 list_del(&asd->list);
308 sd->asd = asd;
309 sd->notifier = notifier;
310
311 /* Move from the global subdevice list to notifier's done */
312 list_move(&sd->async_list, &notifier->done);
313
314 /*
315 * See if the sub-device has a notifier. If not, return here.
316 */
317 subdev_notifier = v4l2_async_find_subdev_notifier(sd);
318 if (!subdev_notifier || subdev_notifier->parent)
319 return 0;
320
321 /*
322 * Proceed with checking for the sub-device notifier's async
323 * sub-devices, and return the result. The error will be handled by the
324 * caller.
325 */
326 subdev_notifier->parent = notifier;
327
328 return v4l2_async_nf_try_all_subdevs(subdev_notifier);
329 }
330

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip