Re: [PATCH 2/3] megaraid_sas: use octal permissions instead of constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 29, 2019 at 9:30 PM Tomas Henzl <thenzl@xxxxxxxxxx> wrote:
>
> Checkpatch emits a warning when using symbolic permissions. Use octal
> permissions instead.
> No functional change.
>
> Signed-off-by: Tomas Henzl <thenzl@xxxxxxxxxx>
Acked-by: Sumit Saxena <sumit.saxena@xxxxxxxxxxxx>
> ---
>  drivers/scsi/megaraid/megaraid_sas_base.c | 20 ++++++++++----------
>  drivers/scsi/megaraid/megaraid_sas_fp.c   |  2 +-
>  2 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
> index 3752daab0..0522821a5 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_base.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c
> @@ -64,45 +64,45 @@
>   * Will be set in megasas_init_mfi if user does not provide
>   */
>  static unsigned int max_sectors;
> -module_param_named(max_sectors, max_sectors, int, S_IRUGO);
> +module_param_named(max_sectors, max_sectors, int, 0444);
>  MODULE_PARM_DESC(max_sectors,
>         "Maximum number of sectors per IO command");
>
>  static int msix_disable;
> -module_param(msix_disable, int, S_IRUGO);
> +module_param(msix_disable, int, 0444);
>  MODULE_PARM_DESC(msix_disable, "Disable MSI-X interrupt handling. Default: 0");
>
>  static unsigned int msix_vectors;
> -module_param(msix_vectors, int, S_IRUGO);
> +module_param(msix_vectors, int, 0444);
>  MODULE_PARM_DESC(msix_vectors, "MSI-X max vector count. Default: Set by FW");
>
>  static int allow_vf_ioctls;
> -module_param(allow_vf_ioctls, int, S_IRUGO);
> +module_param(allow_vf_ioctls, int, 0444);
>  MODULE_PARM_DESC(allow_vf_ioctls, "Allow ioctls in SR-IOV VF mode. Default: 0");
>
>  static unsigned int throttlequeuedepth = MEGASAS_THROTTLE_QUEUE_DEPTH;
> -module_param(throttlequeuedepth, int, S_IRUGO);
> +module_param(throttlequeuedepth, int, 0444);
>  MODULE_PARM_DESC(throttlequeuedepth,
>         "Adapter queue depth when throttled due to I/O timeout. Default: 16");
>
>  unsigned int resetwaittime = MEGASAS_RESET_WAIT_TIME;
> -module_param(resetwaittime, int, S_IRUGO);
> +module_param(resetwaittime, int, 0444);
>  MODULE_PARM_DESC(resetwaittime, "Wait time in (1-180s) after I/O timeout before resetting adapter. Default: 180s");
>
>  int smp_affinity_enable = 1;
> -module_param(smp_affinity_enable, int, S_IRUGO);
> +module_param(smp_affinity_enable, int, 0444);
>  MODULE_PARM_DESC(smp_affinity_enable, "SMP affinity feature enable/disable Default: enable(1)");
>
>  int rdpq_enable = 1;
> -module_param(rdpq_enable, int, S_IRUGO);
> +module_param(rdpq_enable, int, 0444);
>  MODULE_PARM_DESC(rdpq_enable, "Allocate reply queue in chunks for large queue depth enable/disable Default: enable(1)");
>
>  unsigned int dual_qdepth_disable;
> -module_param(dual_qdepth_disable, int, S_IRUGO);
> +module_param(dual_qdepth_disable, int, 0444);
>  MODULE_PARM_DESC(dual_qdepth_disable, "Disable dual queue depth feature. Default: 0");
>
>  unsigned int scmd_timeout = MEGASAS_DEFAULT_CMD_TIMEOUT;
> -module_param(scmd_timeout, int, S_IRUGO);
> +module_param(scmd_timeout, int, 0444);
>  MODULE_PARM_DESC(scmd_timeout, "scsi command timeout (10-90s), default 90s. See megasas_reset_timer.");
>
>  MODULE_LICENSE("GPL");
> diff --git a/drivers/scsi/megaraid/megaraid_sas_fp.c b/drivers/scsi/megaraid/megaraid_sas_fp.c
> index 9ac357619..d296255a4 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_fp.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_fp.c
> @@ -58,7 +58,7 @@
>
>  #define LB_PENDING_CMDS_DEFAULT 4
>  static unsigned int lb_pending_cmds = LB_PENDING_CMDS_DEFAULT;
> -module_param(lb_pending_cmds, int, S_IRUGO);
> +module_param(lb_pending_cmds, int, 0444);
>  MODULE_PARM_DESC(lb_pending_cmds, "Change raid-1 load balancing outstanding "
>         "threshold. Valid Values are 1-128. Default: 4");
>
> --
> 2.20.1
>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux