[media:topic/media-controller 2022/2026] drivers/media/usb/uvc/uvc_driver.c:1960:2: note: in expansion of macro 'if'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media topic/media-controller
head:   0a3c36e2b81cf4fe4b6d094b27259716f0ed9a4d
commit: 1590ad7b52714fddc958189103c95541b49b1dae [2022/2026] [media] media-device: split media initialization and registration
config: x86_64-randconfig-s1-12190421 (attached as .config)
reproduce:
        git checkout 1590ad7b52714fddc958189103c95541b49b1dae
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:4:0,
                    from include/linux/atomic.h:4,
                    from drivers/media/usb/uvc/uvc_driver.c:14:
   drivers/media/usb/uvc/uvc_driver.c: In function 'uvc_probe':
   drivers/media/usb/uvc/uvc_driver.c:1960:32: error: 'struct uvc_device' has no member named 'mdev'
     if (media_device_register(&dev->mdev) < 0)
                                   ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> drivers/media/usb/uvc/uvc_driver.c:1960:2: note: in expansion of macro 'if'
     if (media_device_register(&dev->mdev) < 0)
     ^
   drivers/media/usb/uvc/uvc_driver.c:1960:32: error: 'struct uvc_device' has no member named 'mdev'
     if (media_device_register(&dev->mdev) < 0)
                                   ^
   include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                                           ^
>> drivers/media/usb/uvc/uvc_driver.c:1960:2: note: in expansion of macro 'if'
     if (media_device_register(&dev->mdev) < 0)
     ^
   drivers/media/usb/uvc/uvc_driver.c:1960:32: error: 'struct uvc_device' has no member named 'mdev'
     if (media_device_register(&dev->mdev) < 0)
                                   ^
   include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^
>> drivers/media/usb/uvc/uvc_driver.c:1960:2: note: in expansion of macro 'if'
     if (media_device_register(&dev->mdev) < 0)
     ^

vim +/if +1960 drivers/media/usb/uvc/uvc_driver.c

  1944		if (v4l2_device_register(&intf->dev, &dev->vdev) < 0)
  1945			goto error;
  1946	
  1947		/* Initialize controls. */
  1948		if (uvc_ctrl_init_device(dev) < 0)
  1949			goto error;
  1950	
  1951		/* Scan the device for video chains. */
  1952		if (uvc_scan_device(dev) < 0)
  1953			goto error;
  1954	
  1955		/* Register video device nodes. */
  1956		if (uvc_register_chains(dev) < 0)
  1957			goto error;
  1958	
  1959		/* Register the media device node */
> 1960		if (media_device_register(&dev->mdev) < 0)
  1961			goto error;
  1962	
  1963		/* Save our data pointer in the interface data. */
  1964		usb_set_intfdata(intf, dev);
  1965	
  1966		/* Initialize the interrupt URB. */
  1967		if ((ret = uvc_status_init(dev)) < 0) {
  1968			uvc_printk(KERN_INFO, "Unable to initialize the status "

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