Skip to contentSkip to conversation

3.4: Build failure for lpfc_scsi driver

DISCUSSION Alex Buell 2 participants 2 messages May 21, 2012

lore
Share & tools
lore

Alex Buell

author
#0 lore raw

cc1: warnings being treated as errors drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl’:
drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl_prot’:
drivers/scsi/lpfc/lpfc_scsi.c:2037:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl’:
drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl_prot’:
drivers/scsi/lpfc/lpfc_scsi.c:2386:11: error: unused variable ‘rc’

Easily fixed though but all the other warnings previously seen were fine yet this module was compiled with warnings being treated as errors?

Signature · 1 line
Tactical Nuclear Kittens
#1 lore raw
Quoted 10 lines · Alex Buell

cc1: warnings being treated as errors drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl’:
drivers/scsi/lpfc/lpfc_scsi.c:1900:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_bpl_prot’:
drivers/scsi/lpfc/lpfc_scsi.c:2037:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl’:
drivers/scsi/lpfc/lpfc_scsi.c:2256:11: error: unused variable ‘rc’ drivers/scsi/lpfc/lpfc_scsi.c: In function ‘lpfc_bg_setup_sgl_prot’:
drivers/scsi/lpfc/lpfc_scsi.c:2386:11: error: unused variable ‘rc’

Quoted 2 lines

Easily fixed though but all the other warnings previously seen were fine yet this module was compiled with warnings being treated as errors?

Had this reported already. The flag in the Makefile for this driver was introduced between v3.3 and v3.4-rc1, in earlier versions it was compiled without it. If you don't actually need it just remove the flag and it will compile just fine!