linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qcom:sdm: move the static keyword to the front of declaration
@ 2020-04-23  7:16 chentao (AS)
  2020-04-23  8:56 ` Georgi Djakov
  0 siblings, 1 reply; 2+ messages in thread
From: chentao (AS) @ 2020-04-23  7:16 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Georgi Djakov
  Cc: linux-arm-msm, linux-pm, linux-pm

Fix the following warning:

Move the static keyword to the front of declaration of sdm845_aggre1_noc
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):

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: ChenTao <chentao107@huawei.com>
---
  drivers/interconnect/qcom/sdm845.c | 16 ++++++++--------
  1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/interconnect/qcom/sdm845.c 
b/drivers/interconnect/qcom/sdm845.c
index b013b80caa45..f6c7b969520d 100644
--- a/drivers/interconnect/qcom/sdm845.c
+++ b/drivers/interconnect/qcom/sdm845.c
@@ -192,7 +192,7 @@ static struct qcom_icc_node *aggre1_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
      .bcms = aggre1_noc_bcms,
@@ -220,7 +220,7 @@ static struct qcom_icc_node *aggre2_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
      .bcms = aggre2_noc_bcms,
@@ -281,7 +281,7 @@ static struct qcom_icc_node *config_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(config_noc_nodes),
      .bcms = config_noc_bcms,
@@ -297,7 +297,7 @@ static struct qcom_icc_node *dc_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(dc_noc_nodes),
      .bcms = dc_noc_bcms,
@@ -315,7 +315,7 @@ static struct qcom_icc_node *gladiator_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(gladiator_noc_nodes),
      .bcms = gladiator_noc_bcms,
@@ -350,7 +350,7 @@ static struct qcom_icc_node *mem_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(mem_noc_nodes),
      .bcms = mem_noc_bcms,
@@ -384,7 +384,7 @@ static struct qcom_icc_node *mmss_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
      .bcms = mmss_noc_bcms,
@@ -430,7 +430,7 @@ static struct qcom_icc_node *system_noc_nodes[] = {
      [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,
      .num_nodes = ARRAY_SIZE(system_noc_nodes),
      .bcms = system_noc_bcms,
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qcom:sdm: move the static keyword to the front of declaration
  2020-04-23  7:16 [PATCH] qcom:sdm: move the static keyword to the front of declaration chentao (AS)
@ 2020-04-23  8:56 ` Georgi Djakov
  0 siblings, 0 replies; 2+ messages in thread
From: Georgi Djakov @ 2020-04-23  8:56 UTC (permalink / raw)
  To: chentao (AS); +Cc: Andy Gross, Bjorn Andersson, linux-arm-msm, linux-pm

Hi,

On 4/23/20 10:16, chentao (AS) wrote:
> Fix the following warning:
> 
> Move the static keyword to the front of declaration of sdm845_aggre1_noc
> 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):
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: ChenTao <chentao107@huawei.com>

Tha patch is malformed and i can't apply it. Maybe try using git format-patch
and git send-email instead of Thunderbird.

> ---
>  drivers/interconnect/qcom/sdm845.c | 16 ++++++++--------

I can see the same warning from osm-l3.c Could you please send one patch
fixing both files? Also use the prefix "interconnect: qcom:" in the subject.

Thanks,
Georgi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-23  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  7:16 [PATCH] qcom:sdm: move the static keyword to the front of declaration chentao (AS)
2020-04-23  8:56 ` Georgi Djakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).