Compiler warning from drivers/media/usb/au0828/au0828-video.c: In function ‘queue_setup’
Hi Mauro,
I am seeing the following warning from au0828 - linux_media media_controller branch:
drivers/media/usb/au0828/au0828-video.c: In function ‘queue_setup’:drivers/media/usb/au0828/au0828-video.c:679:6: warning: ‘entity’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (sink == entity)
^
drivers/media/usb/au0828/au0828-video.c:644:24: note: ‘entity’ was
declared here
struct media_entity *entity, *source;
^This looks real to me, but don't know what entity should have been initialized to.
thanks,
-- Shuah
Signature · 5 lines
Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) [email protected] | (970) 217-8978
Quoted 9 lines · Shuah Khan
Hi Mauro,
I am seeing the following warning from au0828 -
linux_mediamedia_controllerbranch:
drivers/media/usb/au0828/au0828-video.c: In function ‘queue_setup’:drivers/media/usb/au0828/au0828-video.c:679:6: warning: ‘entity’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (sink == entity)
Quoted 9 lines
^ drivers/media/usb/au0828/au0828-video.c:644:24: note: ‘entity’ was declared here struct media_entity *entity, *source; ^This looks real to me, but don't know what entity should have been initialized to.
Hi Mauro,
I don't your patch that fixes this issue in the media-controller branch. Are you planning to get that in?
thanks,
-- Shuah
Signature · 5 lines
Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) [email protected] | (970) 217-8978