* [PATCH 0/7] make a bunch of symbols static
@ 2020-04-07 3:21 Jason Yan
2020-04-07 3:21 ` [PATCH 1/7] scsi: bfa: bfa_svc.c: make two functions static Jason Yan
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:21 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix some sparse warnings.
Jason Yan (7):
scsi: bfa: bfa_svc.c: make two functions static
scsi: bfa: bfa_core.c: make bfa_isr_rspq() static
scsi: bfa: bfa_fcpim.c: make two functions static
scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static
scsi: bfa: bfa_ioc_ct.c: make two funcitons static
scsi: bfa: bfad_attr.c: make two funcitons static
scsi: bfa: bfad.c: make max_rport_logins static
drivers/scsi/bfa/bfa_core.c | 2 +-
drivers/scsi/bfa/bfa_fcpim.c | 4 ++--
drivers/scsi/bfa/bfa_fcs_lport.c | 2 +-
drivers/scsi/bfa/bfa_ioc_ct.c | 4 ++--
drivers/scsi/bfa/bfa_svc.c | 4 ++--
drivers/scsi/bfa/bfad.c | 2 +-
drivers/scsi/bfa/bfad_attr.c | 4 ++--
7 files changed, 11 insertions(+), 11 deletions(-)
--
2.17.2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/7] scsi: bfa: bfa_svc.c: make two functions static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
@ 2020-04-07 3:21 ` Jason Yan
2020-04-07 3:21 ` [PATCH 2/7] scsi: bfa: bfa_core.c: make bfa_isr_rspq() static Jason Yan
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:21 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfa_svc.c:4288:1: warning: symbol
'bfa_fcport_ddportenable' was not declared. Should it be static?
drivers/scsi/bfa/bfa_svc.c:4297:1: warning: symbol
'bfa_fcport_ddportdisable' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfa_svc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/bfa/bfa_svc.c b/drivers/scsi/bfa/bfa_svc.c
index 6d2131441f0a..d8a9e40fa257 100644
--- a/drivers/scsi/bfa/bfa_svc.c
+++ b/drivers/scsi/bfa/bfa_svc.c
@@ -4284,7 +4284,7 @@ bfa_fcport_dportdisable(struct bfa_s *bfa)
bfa_port_set_dportenabled(&bfa->modules.port, BFA_FALSE);
}
-void
+static void
bfa_fcport_ddportenable(struct bfa_s *bfa)
{
/*
@@ -4293,7 +4293,7 @@ bfa_fcport_ddportenable(struct bfa_s *bfa)
bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTENABLE);
}
-void
+static void
bfa_fcport_ddportdisable(struct bfa_s *bfa)
{
/*
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/7] scsi: bfa: bfa_core.c: make bfa_isr_rspq() static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
2020-04-07 3:21 ` [PATCH 1/7] scsi: bfa: bfa_svc.c: make two functions static Jason Yan
@ 2020-04-07 3:21 ` Jason Yan
2020-04-07 3:21 ` [PATCH 3/7] scsi: bfa: bfa_fcpim.c: make two functions static Jason Yan
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:21 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfa_core.c:712:1: warning: symbol 'bfa_isr_rspq' was
not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfa_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c
index 0f554ebb8f2c..fb4c469bd89f 100644
--- a/drivers/scsi/bfa/bfa_core.c
+++ b/drivers/scsi/bfa/bfa_core.c
@@ -708,7 +708,7 @@ bfa_reqq_resume(struct bfa_s *bfa, int qid)
}
}
-bfa_boolean_t
+static bfa_boolean_t
bfa_isr_rspq(struct bfa_s *bfa, int qid)
{
struct bfi_msg_s *m;
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/7] scsi: bfa: bfa_fcpim.c: make two functions static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
2020-04-07 3:21 ` [PATCH 1/7] scsi: bfa: bfa_svc.c: make two functions static Jason Yan
2020-04-07 3:21 ` [PATCH 2/7] scsi: bfa: bfa_core.c: make bfa_isr_rspq() static Jason Yan
@ 2020-04-07 3:21 ` Jason Yan
2020-04-07 3:21 ` [PATCH 4/7] scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static Jason Yan
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:21 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfa_fcpim.c:440:1: warning: symbol
'bfa_ioim_profile_comp' was not declared. Should it be static?
drivers/scsi/bfa/bfa_fcpim.c:457:1: warning: symbol
'bfa_ioim_profile_start' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfa_fcpim.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c
index 284baa3b0c8e..766f2b5ed2ab 100644
--- a/drivers/scsi/bfa/bfa_fcpim.c
+++ b/drivers/scsi/bfa/bfa_fcpim.c
@@ -436,7 +436,7 @@ bfa_fcpim_port_iostats(struct bfa_s *bfa,
return BFA_STATUS_OK;
}
-void
+static void
bfa_ioim_profile_comp(struct bfa_ioim_s *ioim)
{
struct bfa_itnim_latency_s *io_lat =
@@ -453,7 +453,7 @@ bfa_ioim_profile_comp(struct bfa_ioim_s *ioim)
io_lat->avg[idx] += val;
}
-void
+static void
bfa_ioim_profile_start(struct bfa_ioim_s *ioim)
{
ioim->start_time = jiffies;
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/7] scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
` (2 preceding siblings ...)
2020-04-07 3:21 ` [PATCH 3/7] scsi: bfa: bfa_fcpim.c: make two functions static Jason Yan
@ 2020-04-07 3:21 ` Jason Yan
2020-04-07 3:22 ` [PATCH 5/7] scsi: bfa: bfa_ioc_ct.c: make two funcitons static Jason Yan
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:21 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfa_fcs_lport.c:1287:1: warning: symbol
'bfa_fcport_get_loop_attr' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfa_fcs_lport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bfa/bfa_fcs_lport.c b/drivers/scsi/bfa/bfa_fcs_lport.c
index 7c3eadc58b98..e09bf0729deb 100644
--- a/drivers/scsi/bfa/bfa_fcs_lport.c
+++ b/drivers/scsi/bfa/bfa_fcs_lport.c
@@ -1283,7 +1283,7 @@ bfa_fcs_lport_n2n_offline(struct bfa_fcs_lport_s *port)
n2n_port->reply_oxid = 0;
}
-void
+static void
bfa_fcport_get_loop_attr(struct bfa_fcs_lport_s *port)
{
int i = 0, j = 0, bit = 0, alpa_bit = 0;
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 5/7] scsi: bfa: bfa_ioc_ct.c: make two funcitons static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
` (3 preceding siblings ...)
2020-04-07 3:21 ` [PATCH 4/7] scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static Jason Yan
@ 2020-04-07 3:22 ` Jason Yan
2020-04-07 3:22 ` [PATCH 6/7] scsi: bfa: bfad_attr.c: " Jason Yan
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:22 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfa_ioc_ct.c:368:1: warning: symbol
'bfa_ioc_ct2_lpu_read_stat' was not declared. Should it be static?
drivers/scsi/bfa/bfa_ioc_ct.c:748:1: warning: symbol
'bfa_ioc_ct2_mac_reset' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfa_ioc_ct.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/bfa/bfa_ioc_ct.c b/drivers/scsi/bfa/bfa_ioc_ct.c
index 18b58b2f304f..6fd3383ee538 100644
--- a/drivers/scsi/bfa/bfa_ioc_ct.c
+++ b/drivers/scsi/bfa/bfa_ioc_ct.c
@@ -364,7 +364,7 @@ bfa_ioc_ct_isr_mode_set(struct bfa_ioc_s *ioc, bfa_boolean_t msix)
writel(r32, rb + FNC_PERS_REG);
}
-bfa_boolean_t
+static bfa_boolean_t
bfa_ioc_ct2_lpu_read_stat(struct bfa_ioc_s *ioc)
{
u32 r32;
@@ -744,7 +744,7 @@ bfa_ioc_ct2_mem_init(void __iomem *rb)
writel(0, (rb + CT2_MBIST_CTL_REG));
}
-void
+static void
bfa_ioc_ct2_mac_reset(void __iomem *rb)
{
/* put port0, port1 MAC & AHB in reset */
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/7] scsi: bfa: bfad_attr.c: make two funcitons static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
` (4 preceding siblings ...)
2020-04-07 3:22 ` [PATCH 5/7] scsi: bfa: bfa_ioc_ct.c: make two funcitons static Jason Yan
@ 2020-04-07 3:22 ` Jason Yan
2020-04-07 3:22 ` [PATCH 7/7] scsi: bfa: bfad.c: make max_rport_logins static Jason Yan
2020-04-15 1:35 ` [PATCH 0/7] make a bunch of symbols static Martin K. Petersen
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:22 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfad_attr.c:441:1: warning: symbol
'bfad_im_issue_fc_host_lip' was not declared. Should it be static?
drivers/scsi/bfa/bfad_attr.c:566:1: warning: symbol
'bfad_im_vport_set_symbolic_name' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfad_attr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c
index fbfce02e5b93..5ae1e3f78910 100644
--- a/drivers/scsi/bfa/bfad_attr.c
+++ b/drivers/scsi/bfa/bfad_attr.c
@@ -437,7 +437,7 @@ bfad_im_vport_create(struct fc_vport *fc_vport, bool disable)
return status;
}
-int
+static int
bfad_im_issue_fc_host_lip(struct Scsi_Host *shost)
{
struct bfad_im_port_s *im_port =
@@ -562,7 +562,7 @@ bfad_im_vport_disable(struct fc_vport *fc_vport, bool disable)
return 0;
}
-void
+static void
bfad_im_vport_set_symbolic_name(struct fc_vport *fc_vport)
{
struct bfad_vport_s *vport = (struct bfad_vport_s *)fc_vport->dd_data;
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 7/7] scsi: bfa: bfad.c: make max_rport_logins static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
` (5 preceding siblings ...)
2020-04-07 3:22 ` [PATCH 6/7] scsi: bfa: bfad_attr.c: " Jason Yan
@ 2020-04-07 3:22 ` Jason Yan
2020-04-15 1:35 ` [PATCH 0/7] make a bunch of symbols static Martin K. Petersen
7 siblings, 0 replies; 9+ messages in thread
From: Jason Yan @ 2020-04-07 3:22 UTC (permalink / raw)
To: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Cc: Jason Yan
Fix the following sparse warning:
drivers/scsi/bfa/bfad.c:53:17: warning: symbol 'max_rport_logins' was
not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
drivers/scsi/bfa/bfad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index eb0c76338295..bc5d84f87d8f 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -50,7 +50,7 @@ int pcie_max_read_reqsz;
int bfa_debugfs_enable = 1;
int msix_disable_cb = 0, msix_disable_ct = 0;
int max_xfer_size = BFAD_MAX_SECTORS >> 1;
-int max_rport_logins = BFA_FCS_MAX_RPORT_LOGINS;
+static int max_rport_logins = BFA_FCS_MAX_RPORT_LOGINS;
/* Firmware releated */
u32 bfi_image_cb_size, bfi_image_ct_size, bfi_image_ct2_size;
--
2.17.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 0/7] make a bunch of symbols static
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
` (6 preceding siblings ...)
2020-04-07 3:22 ` [PATCH 7/7] scsi: bfa: bfad.c: make max_rport_logins static Jason Yan
@ 2020-04-15 1:35 ` Martin K. Petersen
7 siblings, 0 replies; 9+ messages in thread
From: Martin K. Petersen @ 2020-04-15 1:35 UTC (permalink / raw)
To: Jason Yan
Cc: anil.gurumurthy, sudarsana.kalluru, jejb, martin.petersen,
linux-scsi
Jason,
> Fix some sparse warnings.
>
> Jason Yan (7):
> scsi: bfa: bfa_svc.c: make two functions static
> scsi: bfa: bfa_core.c: make bfa_isr_rspq() static
> scsi: bfa: bfa_fcpim.c: make two functions static
> scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static
> scsi: bfa: bfa_ioc_ct.c: make two funcitons static
> scsi: bfa: bfad_attr.c: make two funcitons static
> scsi: bfa: bfad.c: make max_rport_logins static
Applied to 5.8/scsi-queue, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-04-15 1:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-07 3:21 [PATCH 0/7] make a bunch of symbols static Jason Yan
2020-04-07 3:21 ` [PATCH 1/7] scsi: bfa: bfa_svc.c: make two functions static Jason Yan
2020-04-07 3:21 ` [PATCH 2/7] scsi: bfa: bfa_core.c: make bfa_isr_rspq() static Jason Yan
2020-04-07 3:21 ` [PATCH 3/7] scsi: bfa: bfa_fcpim.c: make two functions static Jason Yan
2020-04-07 3:21 ` [PATCH 4/7] scsi: bfa: bfa_fcs_lport.c: make bfa_fcport_get_loop_attr() static Jason Yan
2020-04-07 3:22 ` [PATCH 5/7] scsi: bfa: bfa_ioc_ct.c: make two funcitons static Jason Yan
2020-04-07 3:22 ` [PATCH 6/7] scsi: bfa: bfad_attr.c: " Jason Yan
2020-04-07 3:22 ` [PATCH 7/7] scsi: bfa: bfad.c: make max_rport_logins static Jason Yan
2020-04-15 1:35 ` [PATCH 0/7] make a bunch of symbols static Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.