CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Daniel Scally <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: [email protected]
CC: "Jean-Michel Hautbois" <[email protected]>
CC: Laurent Pinchart <[email protected]>
CC: Sakari Ailus <[email protected]>

tree:   git://linuxtv.org/mchehab/media-next.git master
head:   d0c19bed8cd3d005739c0a6374118c553564ef10
commit: aa4faf6eb27132532d5a133d9241254c16d4bafa [41/123] media: v4l2-async: 
Create links during v4l2_async_match_notify()
:::::: branch date: 3 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-c001 
(https://download.01.org/0day-ci/archive/20220424/[email protected]/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>


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

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to