linux/drivers/scsi/qedf
Arnd Bergmann d9ea463a1c scsi: qedf: fix LTO-enabled build
The prototype for qedf_dbg_fops/qedf_debugfs_ops doesn't match the definition,
which causes the final link to fail with link-time optimizations:

drivers/scsi/qedf/qedf_main.c:34: error: type of 'qedf_dbg_fops' does not match original declaration [-Werror=lto-type-mismatch]
 extern struct file_operations qedf_dbg_fops;

drivers/scsi/qedf/qedf_debugfs.c:443: note: 'qedf_dbg_fops' was previously declared here
 const struct file_operations qedf_dbg_fops[] = {

drivers/scsi/qedf/qedf_main.c:33: error: type of 'qedf_debugfs_ops' does not match original declaration [-Werror=lto-type-mismatch]
 extern struct qedf_debugfs_ops qedf_debugfs_ops;

drivers/scsi/qedf/qedf_debugfs.c:102: note: 'qedf_debugfs_ops' was previously declared here
 struct qedf_debugfs_ops qedf_debugfs_ops[] = {

This corrects the prototype and moves it into a shared header file where it
belongs. The file operations can also be marked 'const' like the
qedf_debugfs_ops.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-02-13 21:37:01 -05:00
..
drv_fcoe_fw_funcs.c qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
drv_fcoe_fw_funcs.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
drv_scsi_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
Kconfig
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf_attr.c scsi: qedf: Add fka_period SCSI host attribute to show fip keep alive period. 2017-06-12 20:48:06 -04:00
qedf_dbg.c
qedf_dbg.h scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_debugfs.c scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_els.c qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedf_fip.c scsi: qedf: Corrent VLAN tag insertion in fallback VLAN case. 2017-08-24 22:29:03 -04:00
qedf_hsi.h qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
qedf_io.c scsi: qedf: remove redundant initialization of 'fcport' 2018-02-13 21:37:00 -05:00
qedf_main.c scsi: qedf: fix LTO-enabled build 2018-02-13 21:37:01 -05:00
qedf_version.h qed*: Advance drivers' version to 8.33.0.20 2018-01-02 13:59:16 -05:00
qedf.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00