All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH v2 6/6] media: v4l2-async: Create links during v4l2_async_match_notify()
Date: Mon, 31 Jan 2022 13:37:54 +0800	[thread overview]
Message-ID: <202201311324.q8ec5kGJ-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3124 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220130235821.48076-7-djrscally@gmail.com>
References: <20220130235821.48076-7-djrscally@gmail.com>
TO: Daniel Scally <djrscally@gmail.com>
TO: linux-media(a)vger.kernel.org
TO: libcamera-devel(a)lists.libcamera.org
CC: sakari.ailus(a)linux.intel.com
CC: laurent.pinchart(a)ideasonboard.com
CC: hanlinchen(a)chromium.org
CC: tfiga(a)chromium.org
CC: hdegoede(a)redhat.com
CC: kieran.bingham(a)ideasonboard.com
CC: hpa(a)redhat.com

Hi Daniel,

I love your patch! Perhaps something to improve:

[auto build test WARNING on media-tree/master]
[also build test WARNING on v5.17-rc2 next-20220128]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Daniel-Scally/Introduce-ancillary-links/20220131-080041
base:   git://linuxtv.org/media_tree.git master
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: powerpc-randconfig-c003-20220131 (https://download.01.org/0day-ci/archive/20220131/202201311324.q8ec5kGJ-lkp(a)intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> drivers/media/v4l2-core/v4l2-async.c:294:23-30: ERROR: PTR_ERR applied after initialization to constant on line 282

vim +294 drivers/media/v4l2-core/v4l2-async.c

2cab00bb076b9f Sakari Ailus  2017-09-24  277  
8dc719a0ecab0c Daniel Scally 2022-01-30  278  static int
8dc719a0ecab0c Daniel Scally 2022-01-30  279  __v4l2_async_create_ancillary_link(struct v4l2_async_notifier *notifier,
8dc719a0ecab0c Daniel Scally 2022-01-30  280  				   struct v4l2_subdev *sd)
8dc719a0ecab0c Daniel Scally 2022-01-30  281  {
8dc719a0ecab0c Daniel Scally 2022-01-30 @282  	struct media_link *link = NULL;
8dc719a0ecab0c Daniel Scally 2022-01-30  283  
8dc719a0ecab0c Daniel Scally 2022-01-30  284  #if IS_ENABLED(CONFIG_MEDIA_CONTROLLER)
8dc719a0ecab0c Daniel Scally 2022-01-30  285  
8dc719a0ecab0c Daniel Scally 2022-01-30  286  	if (sd->entity.function != MEDIA_ENT_F_LENS &&
8dc719a0ecab0c Daniel Scally 2022-01-30  287  	    sd->entity.function != MEDIA_ENT_F_FLASH)
8dc719a0ecab0c Daniel Scally 2022-01-30  288  		return -EINVAL;
8dc719a0ecab0c Daniel Scally 2022-01-30  289  
8dc719a0ecab0c Daniel Scally 2022-01-30  290  	link = media_create_ancillary_link(&notifier->sd->entity, &sd->entity);
8dc719a0ecab0c Daniel Scally 2022-01-30  291  
8dc719a0ecab0c Daniel Scally 2022-01-30  292  #endif
8dc719a0ecab0c Daniel Scally 2022-01-30  293  
8dc719a0ecab0c Daniel Scally 2022-01-30 @294  	return IS_ERR(link) ? PTR_ERR(link) : 0;
8dc719a0ecab0c Daniel Scally 2022-01-30  295  }
8dc719a0ecab0c Daniel Scally 2022-01-30  296  

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

             reply	other threads:[~2022-01-31  5:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-31  5:37 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-01-30 23:58 [PATCH v2 0/6] Introduce ancillary links Daniel Scally
2022-01-30 23:58 ` [PATCH v2 6/6] media: v4l2-async: Create links during v4l2_async_match_notify() Daniel Scally
2022-02-02 16:38   ` Sakari Ailus
2022-02-02 21:48     ` Daniel Scally
2022-02-10 23:51       ` Daniel Scally
2022-02-11 11:26       ` Sakari Ailus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201311324.q8ec5kGJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.