linux-sg2042/drivers/scsi/qedi
Arnd Bergmann bd571195c9 scsi: qedi: fix build error without DEBUG_FS
Without CONFIG_DEBUG_FS, we run into a link error:

drivers/scsi/qedi/qedi_iscsi.o: In function `qedi_ep_poll':
qedi_iscsi.c:(.text.qedi_ep_poll+0x134): undefined reference to `do_not_recover'
drivers/scsi/qedi/qedi_iscsi.o: In function `qedi_ep_disconnect':
qedi_iscsi.c:(.text.qedi_ep_disconnect+0x36c): undefined reference to `do_not_recover'
drivers/scsi/qedi/qedi_iscsi.o: In function `qedi_ep_connect':
qedi_iscsi.c:(.text.qedi_ep_connect+0x350): undefined reference to `do_not_recover'
drivers/scsi/qedi/qedi_fw.o: In function `qedi_tmf_work':
qedi_fw.c:(.text.qedi_tmf_work+0x3b4): undefined reference to `do_not_recover'

This defines the symbol as a constant in this case, as there is no way to
set it to anything other than zero without DEBUG_FS. In addition, I'm renaming
it to qedi_do_not_recover in order to put it into a driver specific namespace,
as "do_not_recover" is a really bad name for a kernel-wide global identifier
when it is used only in one driver.

Fixes: ace7f46ba5 ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-03-06 22:22:16 -05:00
..
Kconfig
Makefile
qedi.h
qedi_dbg.c scsi: qedi: return via va_end to match corresponding va_start 2017-01-05 00:31:13 -05:00
qedi_dbg.h
qedi_debugfs.c scsi: qedi: fix build error without DEBUG_FS 2017-03-06 22:22:16 -05:00
qedi_fw.c scsi: qedi: fix build error without DEBUG_FS 2017-03-06 22:22:16 -05:00
qedi_gbl.h scsi: qedi: fix build error without DEBUG_FS 2017-03-06 22:22:16 -05:00
qedi_hsi.h
qedi_iscsi.c scsi: qedi: fix build error without DEBUG_FS 2017-03-06 22:22:16 -05:00
qedi_iscsi.h
qedi_main.c scsi: qedi: fix missing return error code check on call to qedi_setup_int 2017-02-28 21:55:24 -05:00
qedi_sysfs.c
qedi_version.h