Re: [PATCH 2/5] media: Always keep a graph walk large enough around

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sakari,

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.5-rc1 next-20160127]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Sakari-Ailus/Unify-MC-graph-power-management-code/20160127-215417
base:   git://linuxtv.org/media_tree.git master
config: xtensa-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   drivers/media/media-device.c: In function 'media_device_register_entity':
>> drivers/media/media-device.c:583:10: warning: missing braces around initializer [-Wmissing-braces]
      struct media_entity_graph new = { 0 };
             ^
   drivers/media/media-device.c:583:10: warning: (near initialization for 'new.stack') [-Wmissing-braces]

vim +583 drivers/media/media-device.c

   567		mdev->entity_internal_idx_max =
   568			max(mdev->entity_internal_idx_max, entity->internal_idx);
   569	
   570		/* Initialize media_gobj embedded at the entity */
   571		media_gobj_create(mdev, MEDIA_GRAPH_ENTITY, &entity->graph_obj);
   572	
   573		/* Initialize objects at the pads */
   574		for (i = 0; i < entity->num_pads; i++)
   575			media_gobj_create(mdev, MEDIA_GRAPH_PAD,
   576				       &entity->pads[i].graph_obj);
   577	
   578		spin_unlock(&mdev->lock);
   579	
   580		mutex_lock(&mdev->graph_mutex);
   581		if (mdev->entity_internal_idx_max
   582		    >= mdev->pm_count_walk.ent_enum.idx_max) {
 > 583			struct media_entity_graph new = { 0 };
   584	
   585			/*
   586			 * Initialise the new graph walk before cleaning up
   587			 * the old one in order not to spoil the graph walk
   588			 * object of the media device if graph walk init fails.
   589			 */
   590			ret = media_entity_graph_walk_init(&new, mdev);
   591			if (ret) {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux