[sailus-media-tree:media-ref 16/39] drivers/media/mc/mc-devnode.c:63:15: error: no member named 'ref' in 'struct media_devnode'

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

 



tree:   git://linuxtv.org/sailus/media_tree.git media-ref
head:   f94611d22fa335b7dabf2e7356b4486e5a1f8907
commit: a62c39d46e9076dc500bd9c2f35fcc5e557b4a88 [16/39] media: mc: Refcount the media device
config: i386-randconfig-054-20240208 (https://download.01.org/0day-ci/archive/20240210/202402100414.5Q1MjYkT-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240210/202402100414.5Q1MjYkT-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402100414.5Q1MjYkT-lkp@xxxxxxxxx/

Note: the sailus-media-tree/media-ref HEAD f94611d22fa335b7dabf2e7356b4486e5a1f8907 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

>> drivers/media/mc/mc-devnode.c:63:15: error: no member named 'ref' in 'struct media_devnode'
      63 |         if (devnode->ref)
         |             ~~~~~~~  ^
   1 error generated.


vim +63 drivers/media/mc/mc-devnode.c

    56	
    57	/* Called when the last user of the media device exits. */
    58	static void media_devnode_release(struct device *cd)
    59	{
    60		struct media_devnode *devnode = to_media_devnode(cd);
    61	
    62		/* If the devnode has a ref, it is simply released by the user. */
  > 63		if (devnode->ref)
    64			return;
    65	
    66		if (devnode->minor != -1)
    67			media_devnode_free_minor(devnode->minor);
    68	
    69		/* Release media_devnode and perform other cleanups as needed. */
    70		if (devnode->release)
    71			devnode->release(devnode);
    72	}
    73	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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