[PATCH 2/2] megaraid_sas: clean function declarations in megaraid_sas_fusion.c up

2016-09-30 Thread Baoyou Xie
be declared in a header file. thus can be recognized in other file. So this patch moves the declarations into drivers/scsi/megaraid/megaraid_sas.h. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas.h| 19 +++ drivers/scsi/me

[PATCH 1/2] megaraid_sas: mark symbols static where possible

2016-09-30 Thread Baoyou Xie
they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas_base.c | 6 ++-- drivers/scsi/megaraid/megaraid_sas_fp.c | 28 --- d

[PATCH] scsi: be2iscsi: mark symbols static where possible

2016-09-26 Thread Baoyou Xie
, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/be2iscsi/be_main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be

[PATCH 3/3] megaraid_sas: clean function declarations in megaraid_sas_base.c up

2016-09-24 Thread Baoyou Xie
/megaraid/megaraid_sas_base.c, but should be declared in a header file. thus can be recognized in other file. So this patch moves the declarations into drivers/scsi/megaraid/megaraid_sas.h. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas.h

[PATCH 2/3] megaraid_sas: clean function declarations in megaraid_sas_fusion.c up

2016-09-24 Thread Baoyou Xie
be declared in a header file. thus can be recognized in other file. So this patch moves the declarations into drivers/scsi/megaraid/megaraid_sas.h. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas.h| 19 +++ drivers/scsi/me

[PATCH 1/3] megaraid_sas: mark symbols static where possible

2016-09-24 Thread Baoyou Xie
these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas_base.c | 6 ++-- drivers/scsi/megaraid/megaraid_sas_fp.c | 30 ++--- drivers/scsi/megaraid/megaraid_sas_fusion.c | 52 +++-- 3 files c

[PATCH] [SCSI] mvsas: mark symbols static where possible

2016-09-24 Thread Baoyou Xie
-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/mvsas/mv_64xx.

[PATCH] lpfc: mark symbols static where possible

2016-09-24 Thread Baoyou Xie
: no previous prototype for 'lpfc_rdp_res_oed_txpower_desc' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie

[PATCH] pm80xx: mark symbols static where possible

2016-09-23 Thread Baoyou Xie
] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/pm8001/pm80xx_hwi.c | 7 --- 1 file chan

[PATCH] pm8001: mark symbols static where possible

2016-09-23 Thread Baoyou Xie
] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/pm8001/pm8001_hwi.c | 4 ++-- drivers/scsi/

[PATCH] [SCSI] bfa: mark symbols static where possible

2016-09-23 Thread Baoyou Xie
for 'bfad_iocmd_iocfc_get_attr' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.

[PATCH] megaraid_sas: clean function declarations in megaraid_sas_base.c up

2016-09-18 Thread Baoyou Xie
-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/megaraid/megaraid_sas_base.c | 13 - drivers/scsi/megaraid/megaraid_sas_fusion.h | 9 + 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/me

[PATCH] [SCSI] bfa: mark symbols static where possible

2016-09-04 Thread Baoyou Xie
'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- 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.c | 6 +- drivers/scsi/bfa/bfa_ioc_ct.c| 4 +- drivers/scsi/bfa/bfa_

[PATCH] lpfc: mark symbols static where possible

2016-09-04 Thread Baoyou Xie
with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/lpfc/lpfc_ct.c | 82 +-- drivers/scsi/lpfc/lpfc_els.c | 34 +- drivers/scsi/lpfc/lpfc_mbox.c | 4 +-- drivers/scsi/lpfc/lpfc_sli.c | 4 +-- 4 files chang

[PATCH] [SCSI] bnx2fc: mark symbols static where possible

2016-09-04 Thread Baoyou Xie
, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/bnx2fc/bnx2fc_els.c | 4 ++-- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 + drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 +- drivers/scsi/bnx2fc/bnx2f

[PATCH] [SCSI] aacraid: mark aac_src_select_comm() static

2016-09-04 Thread Baoyou Xie
this patch marks this function with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/aacraid/src.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c index 28f8b8a..0c45388 100644 --- a/driver

[PATCH v2] scsi: move function declarations to scsi_priv.h

2016-08-30 Thread Baoyou Xie
for 'scsi_evt_thread' [-Wmissing-prototypes] in fact, both functions are declared in drivers/scsi/scsi_scan.c but need to move them into scsi_priv.h. Signed-off-by: Baoyou Xie <baoyou@linaro.org> Reviewed-by: Bart Van Assche <bart.vanass...@sandisk.com> --- drivers/scsi/scsi_priv.h | 2 ++

[PATCH] [SCSI] qla4xxx: mark symbols static where possible

2016-08-29 Thread Baoyou Xie
this patch marks this function with 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/qla4xxx/ql4_nx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c index ae87d6c..06ddd13

[PATCH] scsi: ufs: add missing header dependencies for tc-dwc-g210

2016-08-29 Thread Baoyou Xie
] In fact, these functions are declared in ufs/tc-dwc-g210.h, so this patch add missing header dependencies Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/ufs/tc-dwc-g210.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/tc-dwc-g210.c b/drivers/scsi/ufs/

[PATCH] scsi: ufs: add missing declaration in ufshcd.h

2016-08-28 Thread Baoyou Xie
and exported but need to be declared in header file. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/ufs/ufshcd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 430bef1..2f696ea 100644 --- a/drivers/scsi/ufs/uf

[PATCH] scsi: move function declarationes to scsi_priv.h

2016-08-27 Thread Baoyou Xie
for 'scsi_evt_thread' [-Wmissing-prototypes] in fact, both functiones are declared in drivers/scsi/scsi_scan.c but need to move the declarationes into scsi_priv.h. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/scsi_priv.h | 2 ++ drivers/scsi/scsi_scan.c | 2 -- 2 files chan

[PATCH] fix:pmcraid: mark symbols static where possible

2016-08-27 Thread Baoyou Xie
used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks it 'static'. Signed-off-by: Baoyou Xie <baoyou@linaro.org> --- drivers/scsi/pmcraid.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver