Commit 5409e0cc authored by ChenTao's avatar ChenTao Committed by Greg Kroah-Hartman

interconnect: qcom: Move the static keyword to the front of declaration

Fix the following warning:

Move the static keyword to the front of declaration of sdm845_icc_osm_l3
sdm845_aggre1_noc sc7180_icc_osm_l3 sdm845_aggre2_noc sdm845_config_noc
sdm845_dc_noc sdm845_gladiator_noc sdm845_mem_noc sdm845_mmss_noc and
sdm845_system_noc, resolve the following compiler warning that can be
when building with warnings enabled (W=1):

drivers/interconnect/qcom/osm-l3.c:81:1: warning:
 const static struct qcom_icc_desc sdm845_icc_osm_l3 = {
drivers/interconnect/qcom/osm-l3.c:94:1: warning:
 const static struct qcom_icc_desc sc7180_icc_osm_l3 = {
drivers/interconnect/qcom/sdm845.c:195:1: warning:
 const static struct qcom_icc_desc sdm845_aggre1_noc = {
drivers/interconnect/qcom/sdm845.c:223:1: warning:
 const static struct qcom_icc_desc sdm845_aggre2_noc = {
drivers/interconnect/qcom/sdm845.c:284:1: warning:
 const static struct qcom_icc_desc sdm845_config_noc = {
drivers/interconnect/qcom/sdm845.c:300:1: warning:
 const static struct qcom_icc_desc sdm845_dc_noc = {
drivers/interconnect/qcom/sdm845.c:318:1: warning:
 const static struct qcom_icc_desc sdm845_gladiator_noc = {
drivers/interconnect/qcom/sdm845.c:353:1: warning:
 const static struct qcom_icc_desc sdm845_mem_noc = {
drivers/interconnect/qcom/sdm845.c:387:1: warning:
 const static struct qcom_icc_desc sdm845_mmss_noc = {
drivers/interconnect/qcom/sdm845.c:433:1: warning:
 const static struct qcom_icc_desc sdm845_system_noc = {
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarChenTao <chentao107@huawei.com>
Link: https://lore.kernel.org/r/20200423132142.45174-1-chentao107@huawei.comSigned-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Link: https://lore.kernel.org/r/20200429101904.5771-2-georgi.djakov@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e56bc06
...@@ -78,7 +78,7 @@ static struct qcom_icc_node *sdm845_osm_l3_nodes[] = { ...@@ -78,7 +78,7 @@ static struct qcom_icc_node *sdm845_osm_l3_nodes[] = {
[SLAVE_OSM_L3] = &sdm845_osm_l3, [SLAVE_OSM_L3] = &sdm845_osm_l3,
}; };
const static struct qcom_icc_desc sdm845_icc_osm_l3 = { static const struct qcom_icc_desc sdm845_icc_osm_l3 = {
.nodes = sdm845_osm_l3_nodes, .nodes = sdm845_osm_l3_nodes,
.num_nodes = ARRAY_SIZE(sdm845_osm_l3_nodes), .num_nodes = ARRAY_SIZE(sdm845_osm_l3_nodes),
}; };
...@@ -91,7 +91,7 @@ static struct qcom_icc_node *sc7180_osm_l3_nodes[] = { ...@@ -91,7 +91,7 @@ static struct qcom_icc_node *sc7180_osm_l3_nodes[] = {
[SLAVE_OSM_L3] = &sc7180_osm_l3, [SLAVE_OSM_L3] = &sc7180_osm_l3,
}; };
const static struct qcom_icc_desc sc7180_icc_osm_l3 = { static const struct qcom_icc_desc sc7180_icc_osm_l3 = {
.nodes = sc7180_osm_l3_nodes, .nodes = sc7180_osm_l3_nodes,
.num_nodes = ARRAY_SIZE(sc7180_osm_l3_nodes), .num_nodes = ARRAY_SIZE(sc7180_osm_l3_nodes),
}; };
......
...@@ -192,7 +192,7 @@ static struct qcom_icc_node *aggre1_noc_nodes[] = { ...@@ -192,7 +192,7 @@ static struct qcom_icc_node *aggre1_noc_nodes[] = {
[SLAVE_ANOC_PCIE_A1NOC_SNOC] = &qns_pcie_a1noc_snoc, [SLAVE_ANOC_PCIE_A1NOC_SNOC] = &qns_pcie_a1noc_snoc,
}; };
const static struct qcom_icc_desc sdm845_aggre1_noc = { static const struct qcom_icc_desc sdm845_aggre1_noc = {
.nodes = aggre1_noc_nodes, .nodes = aggre1_noc_nodes,
.num_nodes = ARRAY_SIZE(aggre1_noc_nodes), .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
.bcms = aggre1_noc_bcms, .bcms = aggre1_noc_bcms,
...@@ -220,7 +220,7 @@ static struct qcom_icc_node *aggre2_noc_nodes[] = { ...@@ -220,7 +220,7 @@ static struct qcom_icc_node *aggre2_noc_nodes[] = {
[SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc, [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
}; };
const static struct qcom_icc_desc sdm845_aggre2_noc = { static const struct qcom_icc_desc sdm845_aggre2_noc = {
.nodes = aggre2_noc_nodes, .nodes = aggre2_noc_nodes,
.num_nodes = ARRAY_SIZE(aggre2_noc_nodes), .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
.bcms = aggre2_noc_bcms, .bcms = aggre2_noc_bcms,
...@@ -281,7 +281,7 @@ static struct qcom_icc_node *config_noc_nodes[] = { ...@@ -281,7 +281,7 @@ static struct qcom_icc_node *config_noc_nodes[] = {
[SLAVE_SERVICE_CNOC] = &srvc_cnoc, [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
}; };
const static struct qcom_icc_desc sdm845_config_noc = { static const struct qcom_icc_desc sdm845_config_noc = {
.nodes = config_noc_nodes, .nodes = config_noc_nodes,
.num_nodes = ARRAY_SIZE(config_noc_nodes), .num_nodes = ARRAY_SIZE(config_noc_nodes),
.bcms = config_noc_bcms, .bcms = config_noc_bcms,
...@@ -297,7 +297,7 @@ static struct qcom_icc_node *dc_noc_nodes[] = { ...@@ -297,7 +297,7 @@ static struct qcom_icc_node *dc_noc_nodes[] = {
[SLAVE_MEM_NOC_CFG] = &qhs_memnoc, [SLAVE_MEM_NOC_CFG] = &qhs_memnoc,
}; };
const static struct qcom_icc_desc sdm845_dc_noc = { static const struct qcom_icc_desc sdm845_dc_noc = {
.nodes = dc_noc_nodes, .nodes = dc_noc_nodes,
.num_nodes = ARRAY_SIZE(dc_noc_nodes), .num_nodes = ARRAY_SIZE(dc_noc_nodes),
.bcms = dc_noc_bcms, .bcms = dc_noc_bcms,
...@@ -315,7 +315,7 @@ static struct qcom_icc_node *gladiator_noc_nodes[] = { ...@@ -315,7 +315,7 @@ static struct qcom_icc_node *gladiator_noc_nodes[] = {
[SLAVE_SERVICE_GNOC] = &srvc_gnoc, [SLAVE_SERVICE_GNOC] = &srvc_gnoc,
}; };
const static struct qcom_icc_desc sdm845_gladiator_noc = { static const struct qcom_icc_desc sdm845_gladiator_noc = {
.nodes = gladiator_noc_nodes, .nodes = gladiator_noc_nodes,
.num_nodes = ARRAY_SIZE(gladiator_noc_nodes), .num_nodes = ARRAY_SIZE(gladiator_noc_nodes),
.bcms = gladiator_noc_bcms, .bcms = gladiator_noc_bcms,
...@@ -350,7 +350,7 @@ static struct qcom_icc_node *mem_noc_nodes[] = { ...@@ -350,7 +350,7 @@ static struct qcom_icc_node *mem_noc_nodes[] = {
[SLAVE_EBI1] = &ebi, [SLAVE_EBI1] = &ebi,
}; };
const static struct qcom_icc_desc sdm845_mem_noc = { static const struct qcom_icc_desc sdm845_mem_noc = {
.nodes = mem_noc_nodes, .nodes = mem_noc_nodes,
.num_nodes = ARRAY_SIZE(mem_noc_nodes), .num_nodes = ARRAY_SIZE(mem_noc_nodes),
.bcms = mem_noc_bcms, .bcms = mem_noc_bcms,
...@@ -384,7 +384,7 @@ static struct qcom_icc_node *mmss_noc_nodes[] = { ...@@ -384,7 +384,7 @@ static struct qcom_icc_node *mmss_noc_nodes[] = {
[SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp, [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
}; };
const static struct qcom_icc_desc sdm845_mmss_noc = { static const struct qcom_icc_desc sdm845_mmss_noc = {
.nodes = mmss_noc_nodes, .nodes = mmss_noc_nodes,
.num_nodes = ARRAY_SIZE(mmss_noc_nodes), .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
.bcms = mmss_noc_bcms, .bcms = mmss_noc_bcms,
...@@ -430,7 +430,7 @@ static struct qcom_icc_node *system_noc_nodes[] = { ...@@ -430,7 +430,7 @@ static struct qcom_icc_node *system_noc_nodes[] = {
[SLAVE_TCU] = &xs_sys_tcu_cfg, [SLAVE_TCU] = &xs_sys_tcu_cfg,
}; };
const static struct qcom_icc_desc sdm845_system_noc = { static const struct qcom_icc_desc sdm845_system_noc = {
.nodes = system_noc_nodes, .nodes = system_noc_nodes,
.num_nodes = ARRAY_SIZE(system_noc_nodes), .num_nodes = ARRAY_SIZE(system_noc_nodes),
.bcms = system_noc_bcms, .bcms = system_noc_bcms,
......
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