scsi: isci: static most module parameters
Subsystems (2)
PATCH 1/1 scsi: isci: static most module parameters
From: "Dr. David Alan Gilbert" <[email protected]>
Most of the module parameters are only used locally in the same C file; so static them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- drivers/scsi/isci/init.c | 14 +++++++------- drivers/scsi/isci/isci.h | 7 ------- 2 files changed, 7 insertions(+), 14 deletions(-)
drivers/scsi/isci/init.c +7 -7
@@ -91,31 +91,31 @@ MODULE_DEVICE_TABLE(pci, isci_id_table);/* linux isci specific settings */ -unsigned char no_outbound_task_to =2 ; +static unsigned char no_outbound_task_to =2 ;module_param (no_outbound_task_to, byte,0 );MODULE_PARM_DESC (no_outbound_task_to,"No Outbound Task Timeout (1us incr)" ); -u16 ssp_max_occ_to =20 ; +static u16 ssp_max_occ_to =20 ;module_param (ssp_max_occ_to, ushort,0 );MODULE_PARM_DESC (ssp_max_occ_to,"SSP Max occupancy timeout (100us incr)" ); -u16 stp_max_occ_to =5 ; +static u16 stp_max_occ_to =5 ;module_param (stp_max_occ_to, ushort,0 );MODULE_PARM_DESC (stp_max_occ_to,"STP Max occupancy timeout (100us incr)" ); -u16 ssp_inactive_to =5 ; +static u16 ssp_inactive_to =5 ;module_param (ssp_inactive_to, ushort,0 );MODULE_PARM_DESC (ssp_inactive_to,"SSP inactivity timeout (100us incr)" ); -u16 stp_inactive_to =5 ; +static u16 stp_inactive_to =5 ;module_param (stp_inactive_to, ushort,0 );MODULE_PARM_DESC (stp_inactive_to,"STP inactivity timeout (100us incr)" ); -unsigned char phy_gen =SCIC_SDS_PARM_GEN2_SPEED ; +static unsigned char phy_gen =SCIC_SDS_PARM_GEN2_SPEED ;module_param (phy_gen, byte,0 );MODULE_PARM_DESC (phy_gen,"PHY generation (1: 1.5Gbps 2: 3.0Gbps 3: 6.0Gbps)" ); -unsigned char max_concurr_spinup; +static unsigned char max_concurr_spinup;module_param (max_concurr_spinup, byte,0 );MODULE_PARM_DESC (max_concurr_spinup,"Max concurrent device spinup" );
drivers/scsi/isci/isci.h +0 -7
@@ -473,13 +473,6 @@ static inline void sci_swab32_cpy(void *_dest, void *_src, ssize_t word_cnt) dest[word_cnt] =swab32 (src[word_cnt]); } -extern unsigned char no_outbound_task_to; -extern u16 ssp_max_occ_to; -extern u16 stp_max_occ_to; -extern u16 ssp_inactive_to; -extern u16 stp_inactive_to; -extern unsigned char phy_gen; -extern unsigned char max_concurr_spinup;extern uint cable_selection_override;irqreturn_t isci_msix_isr (int vec,void *data);
Signature · 1 line
2.48.1
Quoted 6 lines · On 3/9/25 23:50, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Most of the module parameters are only used locally in the same C file; so static them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Reviewed-by Damien Le Moal <[email protected]>
Signature · 2 lines
Damien Le Moal Western Digital Research
Martin K. Petersen
AppliedQuoted 4 lines
Most of the module parameters are only used locally in the same C file; so static them.
Applied to 6.15/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 4 lines · On Sun, 09 Mar 2025 14:50:44 +0000, [email protected] wrote:
Most of the module parameters are only used locally in the same C file; so static them.
Applied to 6.15/scsi-queue, thanks!
[1/1] scsi: isci: static most module parameters
https://git.kernel.org/mkp/scsi/c/11c79df94b98
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering