linux-next: build warning after merge of the scsi-mkp tree
Hi all,
After merging the scsi-mkp tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
In file included from include/linux/spinlock_types.h:18:0,
from include/linux/spinlock.h:82,
from drivers/scsi/libfc/fc_rport.c:61:drivers/scsi/libfc/fc_rport.c: In function 'fc_rport_recv_req':include/linux/lockdep.h:347:45: warning: 'rdata' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map)
^
drivers/scsi/libfc/fc_rport.c:1832:24: note: 'rdata' was declared here
struct fc_rport_priv *rdata;
^~~~~Introduced by commit
ee35624e1e4e ("scsi: libfc: Add lockdep annotations")
It is actually complaining about function fc_rport_recv_plogi_req() (presumably it is being inlined) and this looks like an actual bug :-(
Signature · 2 lines
Cheers, Stephen Rothwell
Hi all,
Quoted 15 lines · On Wed, 11 Jul 2018 14:17:37 +1000 Stephen Rothwell <[email protected]>…
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/spinlock_types.h:18:0,
frominclude/linux/spinlock.h:82,
fromdrivers/scsi/libfc/fc_rport.c:61:drivers/scsi/libfc/fc_rport.c: In function 'fc_rport_recv_req':include/linux/lockdep.h:347:45: warning: 'rdata' may be used uninitialized in this function [-Wmaybe-uninitialized]#define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) ^ drivers/scsi/libfc/fc_rport.c:1832:24: note: 'rdata' was declared here struct fc_rport_priv *rdata; ^~~~~
Quoted 6 lines
Introduced by commit
ee35624e1e4e("scsi: libfc: Add lockdep annotations")It is actually complaining about function
fc_rport_recv_plogi_req()(presumably it is being inlined) and this looks like an actual bug :-(
This warning now appears after the merge of the scsi tree.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 18 lines · Stephen Rothwell
Hi all,
Quoted 15 lines · On Wed, 11 Jul 2018 14:17:37 +1000 Stephen Rothwell <[email protected]>…
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/spinlock_types.h:18:0,
frominclude/linux/spinlock.h:82,
fromdrivers/scsi/libfc/fc_rport.c:61:drivers/scsi/libfc/fc_rport.c: In function 'fc_rport_recv_req':include/linux/lockdep.h:347:45: warning: 'rdata' may be used uninitialized in this function [-Wmaybe-uninitialized]#define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) ^ drivers/scsi/libfc/fc_rport.c:1832:24: note: 'rdata' was declared here struct fc_rport_priv *rdata; ^~~~~
Quoted 9 lines
Quoted 6 lines
Introduced by commit
ee35624e1e4e("scsi: libfc: Add lockdep annotations")It is actually complaining about function
fc_rport_recv_plogi_req()(presumably it is being inlined) and this looks like an actual bug :-(This warning now appears after the merge of the scsi tree.
I have send a new round of patches to the scsi mailing list (cf 'libfc/fcoe: disc_mutex fixes') which address this issue.
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)