CC: kbuild-...@lists.01.org
BCC: l...@intel.com
CC: linux-ker...@vger.kernel.org
TO: Daniel Scally <djrsca...@gmail.com>
CC: Sakari Ailus <sakari.ai...@linux.intel.com>
CC: "Jean-Michel Hautbois" <jeanmichel.hautb...@ideasonboard.com>
CC: Laurent Pinchart <laurent.pinch...@ideasonboard.com>

tree:   git://linuxtv.org/sailus/media_tree.git master
head:   22e6284ec554f51f9275937ef4c6ab063579c51c
commit: 2edab9518d47ec4d563312e3fda87d8fed2e454b [39/48] media: v4l2-async: 
Create links during v4l2_async_match_notify()
:::::: branch date: 14 hours ago
:::::: commit date: 35 hours ago
config: h8300-randconfig-c024-20220317 
(https://download.01.org/0day-ci/archive/20220318/202203180642.bt1ds9n8-...@intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.0

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


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

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

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

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to