media: em28xx: check media_device_init() before register
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 59 lines
From: "Patchwork Integration"<[email protected]>
Date: Fri, Nov 27, 2026, 12:50
Subject: Re: media: em28xx: checkmedia_device_init()before register
To: "Wang Jichen"<[email protected]>
Cc: "Linux Media CI"<[email protected]>
Dear Wang Jichen:
Thanks for your patches! Unfortunately the Media CI robot detected some
issues:
# Test build-basic:x86_64
In file included from./include/media/media-request.h:20,
from./include/media/videobuf2-core.h:20,
from./include/media/videobuf2-v4l2.h:16,
fromdrivers/media/usb/em28xx/em28xx.h:28,
fromdrivers/media/usb/em28xx/em28xx-cards.c:12:drivers/media/usb/em28xx/em28xx-cards.c: In function ‘em28xx_usb_probe’:./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 291 | #definemedia_device_register(mdev)__media_device_register(mdev, THIS_MODULE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drivers/media/usb/em28xx/em28xx-cards.c:4451:17: note: in expansion of macro ‘media_device_register’
4451 |media_device_register(dev->media_dev);
| ^~~~~~~~~~~~~~~~~~~~~./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
# Test build-basic:x86
In file included from./include/media/media-request.h:20,
from./include/media/videobuf2-core.h:20,
from./include/media/videobuf2-v4l2.h:16,
fromdrivers/media/usb/em28xx/em28xx.h:28,
fromdrivers/media/usb/em28xx/em28xx-cards.c:12:drivers/media/usb/em28xx/em28xx-cards.c: In function ‘em28xx_usb_probe’:./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 291 | #definemedia_device_register(mdev)__media_device_register(mdev, THIS_MODULE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drivers/media/usb/em28xx/em28xx-cards.c:4451:17: note: in expansion of macro ‘media_device_register’
4451 |media_device_register(dev->media_dev);
| ^~~~~~~~~~~~~~~~~~~~~./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
# Test static:test-smatch./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
# Test static:test-sparse
In file included from./include/media/media-request.h:20,
from./include/media/videobuf2-core.h:20,
from./include/media/videobuf2-v4l2.h:16,
fromdrivers/media/usb/em28xx/em28xx.h:28,
fromdrivers/media/usb/em28xx/em28xx-cards.c:12:drivers/media/usb/em28xx/em28xx-cards.c: In function ‘em28xx_usb_probe’:./include/media/media-device.h:291:37: warning: ignoring return value of ‘__media_device_register’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 291 | #definemedia_device_register(mdev)__media_device_register(mdev, THIS_MODULE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drivers/media/usb/em28xx/em28xx-cards.c:4451:17: note: in expansion of macro ‘media_device_register’
4451 |media_device_register(dev->media_dev);
| ^~~~~~~~~~~~~~~~~~~~~
Quoted 8 lines
Please fix your series, and upload a new version. If you have a patchwork
account, do not forget to mark the current series as Superseded.
For more details, check the full report at:
https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/117410694/artifacts/report.htm .
I will fix it.
Thanks
Ji Chen
Quoted 12 lines
Best regards, and Happy Hacking!
Media CI robot on behalf of the linux-media community.
---
Check the latest rules for contributing your patches at:
https://docs.kernel.org/driver-api/media/maintainer-entry-profile.html
If you believe that the CI is wrong, kindly open an issue at
https://gitlab.freedesktop.org/linux-media/media-ci/-/issues or reply-all to this message.