CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Hans Verkuil <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: [email protected]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   d51b1b33c51d147b757f042b4d336603b699f362
commit: 71c689dc2e732d4cb190aaf0edea73116b1611bd media: v4l2-ctrls: split up 
into four source files
date:   10 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 10 months ago
config: arm-randconfig-m031-20220323 
(https://download.01.org/0day-ci/archive/20220324/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0

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

smatch warnings:
drivers/media/v4l2-core/v4l2-ctrls-core.c:944 v4l2_ctrl_handler_init_class() 
warn: Please consider using kvcalloc instead

vim +944 drivers/media/v4l2-core/v4l2-ctrls-core.c

71c689dc2e732d4 Hans Verkuil 2021-04-27  932  
71c689dc2e732d4 Hans Verkuil 2021-04-27  933  /* Initialize the handler */
71c689dc2e732d4 Hans Verkuil 2021-04-27  934  int 
v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl,
71c689dc2e732d4 Hans Verkuil 2021-04-27  935                             
unsigned nr_of_controls_hint,
71c689dc2e732d4 Hans Verkuil 2021-04-27  936                             struct 
lock_class_key *key, const char *name)
71c689dc2e732d4 Hans Verkuil 2021-04-27  937  {
71c689dc2e732d4 Hans Verkuil 2021-04-27  938    mutex_init(&hdl->_lock);
71c689dc2e732d4 Hans Verkuil 2021-04-27  939    hdl->lock = &hdl->_lock;
71c689dc2e732d4 Hans Verkuil 2021-04-27  940    
lockdep_set_class_and_name(hdl->lock, key, name);
71c689dc2e732d4 Hans Verkuil 2021-04-27  941    INIT_LIST_HEAD(&hdl->ctrls);
71c689dc2e732d4 Hans Verkuil 2021-04-27  942    INIT_LIST_HEAD(&hdl->ctrl_refs);
71c689dc2e732d4 Hans Verkuil 2021-04-27  943    hdl->nr_of_buckets = 1 + 
nr_of_controls_hint / 8;
71c689dc2e732d4 Hans Verkuil 2021-04-27 @944    hdl->buckets = 
kvmalloc_array(hdl->nr_of_buckets,
71c689dc2e732d4 Hans Verkuil 2021-04-27  945                                  
sizeof(hdl->buckets[0]),
71c689dc2e732d4 Hans Verkuil 2021-04-27  946                                  
GFP_KERNEL | __GFP_ZERO);
71c689dc2e732d4 Hans Verkuil 2021-04-27  947    hdl->error = hdl->buckets ? 0 : 
-ENOMEM;
71c689dc2e732d4 Hans Verkuil 2021-04-27  948    
v4l2_ctrl_handler_init_request(hdl);
71c689dc2e732d4 Hans Verkuil 2021-04-27  949    return hdl->error;
71c689dc2e732d4 Hans Verkuil 2021-04-27  950  }
71c689dc2e732d4 Hans Verkuil 2021-04-27  951  
EXPORT_SYMBOL(v4l2_ctrl_handler_init_class);
71c689dc2e732d4 Hans Verkuil 2021-04-27  952  

-- 
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