On 13/09/2022 20:57, Bart Van Assche wrote:
Hi Martin, This patch series prepares for constifying SCSI host templates by moving the members that are not constant out of the SCSI host template. Please consider this patch series for the next merge window. Thanks,
note: I find that this series does not apply cleanly to mkp-scsi 6.1 staging (which I guess it should), but ok for v6.0-c5
Thanks, John
Bart. Changes compared to v3: - Changed the 'present' counter from 8 to 32 bits. - Fixed a bug in an error path (reported by John Garry). - Changed EXPORT_SYMBOL() into EXPORT_SYMBOL_GPL(). - Split patch 1/3 into two patches. Changes compared to v2: - Optimized the show_info == NULL case. - Added a patch that removes the code that clears the module pointer in the host template. Changes compared to v1: - Fix the CONFIG_SCSI_PROC_FS=n build. Bart Van Assche (4): scsi: esas2r: Initialize two host template members implicitly scsi: esas2r: Introduce scsi_template_proc_dir() scsi: core: Introduce a new list for SCSI proc directory entries scsi: core: Rework the code for dropping the LLD module reference drivers/scsi/esas2r/esas2r_main.c | 19 +++-- drivers/scsi/scsi_priv.h | 4 +- drivers/scsi/scsi_proc.c | 120 ++++++++++++++++++++++++++---- drivers/scsi/scsi_sysfs.c | 7 +- include/scsi/scsi_device.h | 1 + include/scsi/scsi_host.h | 18 ++--- 6 files changed, 127 insertions(+), 42 deletions(-) .