I experimented with link time optimization after Nico's article at https://lwn.net/Articles/744507/ Here is a set of patches that came out of it for the scsi subsystem. Arnd Bergmann (6): scsi: fc_encode: work around strncpy size warnings scsi: NCR53c406a: avoid section mismatch with LTO scsi: sym53c416: avoid section mismatch with LTO scsi: qedf: fix LTO-enabled build scsi: qedi: fix building with LTO scsi: qedf: use correct strncpy() size drivers/scsi/NCR53c406a.c | 2 +- drivers/scsi/qedf/qedf_dbg.c | 2 +- drivers/scsi/qedf/qedf_dbg.h | 17 ++++++++++------- drivers/scsi/qedf/qedf_debugfs.c | 6 +++--- drivers/scsi/qedf/qedf_main.c | 8 +++----- drivers/scsi/qedi/qedi_dbg.h | 2 +- drivers/scsi/qedi/qedi_debugfs.c | 4 ++-- drivers/scsi/qedi/qedi_gbl.h | 4 ++-- drivers/scsi/qedi/qedi_main.c | 4 ++-- drivers/scsi/sym53c416.c | 2 +- include/scsi/fc/fc_ms.h | 2 +- 11 files changed, 27 insertions(+), 26 deletions(-) -- 2.9.0