Commit 6fe3a4ab authored by Yang Yingliang's avatar Yang Yingliang Committed by Martin K. Petersen

scsi: mpi3mr: Make some symbols static

Fix the following warnings:

  drivers/scsi/mpi3mr/mpi3mr_os.c:24:5: warning: symbol 'prot_mask' was not declared. Should it be static?
  drivers/scsi/mpi3mr/mpi3mr_os.c:28:5: warning: symbol 'prot_guard_mask' was not declared. Should it be static?
  drivers/scsi/mpi3mr/mpi3mr_os.c:31:5: warning: symbol 'logging_level' was not declared. Should it be static?

Link: https://lore.kernel.org/r/20210604071407.1360742-1-yangyingliang@huawei.comReported-by: default avatarHulk Robot <hulkci@huawei.com>
Acked-by: default avatarKashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a254eae3
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
/* Global list and lock for storing multiple adapters managed by the driver */ /* Global list and lock for storing multiple adapters managed by the driver */
extern spinlock_t mrioc_list_lock; extern spinlock_t mrioc_list_lock;
extern struct list_head mrioc_list; extern struct list_head mrioc_list;
extern int prot_mask;
#define MPI3MR_DRIVER_VERSION "00.255.45.01" #define MPI3MR_DRIVER_VERSION "00.255.45.01"
#define MPI3MR_DRIVER_RELDATE "12-December-2020" #define MPI3MR_DRIVER_RELDATE "12-December-2020"
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include "mpi3mr.h" #include "mpi3mr.h"
#include <linux/io-64-nonatomic-lo-hi.h> #include <linux/io-64-nonatomic-lo-hi.h>
extern int prot_mask;
#if defined(writeq) && defined(CONFIG_64BIT) #if defined(writeq) && defined(CONFIG_64BIT)
static inline void mpi3mr_writeq(__u64 b, volatile void __iomem *addr) static inline void mpi3mr_writeq(__u64 b, volatile void __iomem *addr)
......
...@@ -25,10 +25,10 @@ int prot_mask = -1; ...@@ -25,10 +25,10 @@ int prot_mask = -1;
module_param(prot_mask, int, 0); module_param(prot_mask, int, 0);
MODULE_PARM_DESC(prot_mask, "Host protection capabilities mask, def=0x07"); MODULE_PARM_DESC(prot_mask, "Host protection capabilities mask, def=0x07");
int prot_guard_mask = 3; static int prot_guard_mask = 3;
module_param(prot_guard_mask, int, 0); module_param(prot_guard_mask, int, 0);
MODULE_PARM_DESC(prot_guard_mask, " Host protection guard mask, def=3"); MODULE_PARM_DESC(prot_guard_mask, " Host protection guard mask, def=3");
int logging_level; static int logging_level;
module_param(logging_level, int, 0); module_param(logging_level, int, 0);
MODULE_PARM_DESC(logging_level, MODULE_PARM_DESC(logging_level,
" bits for enabling additional logging info (default=0)"); " bits for enabling additional logging info (default=0)");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment