linux-stable/drivers/scsi/qedi
Arnd Bergmann 779936faf4 scsi: qedi: fix building with LTO
When link-time optimizations are enabled, qedi fails to build because
of mismatched prototypes:

drivers/scsi/qedi/qedi_gbl.h:27:37: error: type of 'qedi_dbg_fops' does not match original declaration [-Werror=lto-type-mismatch]
 extern const struct file_operations qedi_dbg_fops;
                                     ^
drivers/scsi/qedi/qedi_debugfs.c:239:30: note: 'qedi_dbg_fops' was previously declared here
 const struct file_operations qedi_dbg_fops[] = {
                              ^
drivers/scsi/qedi/qedi_gbl.h:26:32: error: type of 'qedi_debugfs_ops' does not match original declaration [-Werror=lto-type-mismatch]
 extern struct qedi_debugfs_ops qedi_debugfs_ops;
                                ^
drivers/scsi/qedi/qedi_debugfs.c:102:25: note: 'qedi_debugfs_ops' was previously declared here
 struct qedi_debugfs_ops qedi_debugfs_ops[] = {

This changes the declaration to match the definition, and adapts the
users as necessary. Since both array can be constant here, I'm adding
the 'const' everywhere for consistency.

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>
2018-02-13 21:37:00 -05:00
..
Kconfig qed: Fix iWARP out of order flow 2017-10-19 12:46:43 +01:00
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi.h scsi: qedi: Limit number for CQ queues. 2017-08-24 22:28:50 -04:00
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 scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_debugfs.c scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_fw.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-01-31 14:31:10 -08:00
qedi_fw_api.c qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qedi_fw_iscsi.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedi_fw_scsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_gbl.h scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_hsi.h
qedi_iscsi.c qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qedi_iscsi.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedi_main.c scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_nvm_iscsi_cfg.h scsi: qedi: Add support for Boot from SAN over iSCSI offload 2017-07-12 16:52:27 -04:00
qedi_sysfs.c
qedi_version.h qed*: Advance drivers' version to 8.33.0.20 2018-01-02 13:59:16 -05:00