Skip to contentSkip to conversation

remoteproc: qcom: pas: mark adsp_segment_dump() static

PATCH In review Arnd Bergmann 2 participants 2 messages May 16, 2023 – May 18, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remoteproc: qcom: pas: mark adsp_segment_dump() static

From: Arnd Bergmann <[email protected]>

The function has no other callers and should not be globally defined. Making it static avoids this warning:

drivers/remoteproc/qcom_q6v5_pas.c:108:6: error: no previous prototype for 'adsp_segment_dump'

Fixes a376c10d45a8 ("remoteproc: qcom: pas: Adjust the phys addr wrt the mem region")
---
 drivers/remoteproc/qcom_q6v5_pas.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/remoteproc/qcom_q6v5_pas.c +3 -2
index e34d82b18a67..a1d69721a0e7 100644
@@ -105,8 +105,9 @@ struct qcom_adsp {
 	struct qcom_scm_pas_metadata dtb_pas_metadata;
 };
 
-void adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment,
-		       void *dest, size_t offset, size_t size)
+static void adsp_segment_dump(struct rproc *rproc,
+			      struct rproc_dump_segment *segment,
+			      void *dest, size_t offset, size_t size)
 {
 	struct qcom_adsp *adsp = rproc->priv;
 	int total_offset;
Signature · 1 line
2.39.2
#1 lore raw
Quoted 9 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The function has no other callers and should not be globally defined. Making it static avoids this warning:

drivers/remoteproc/qcom_q6v5_pas.c:108:6: error: no previous prototype for 'adsp_segment_dump'

Fixes a376c10d45a8 ("remoteproc: qcom: pas: Adjust the phys addr wrt the mem region")

This seems to be posted already

https://lore.kernel.org/lkml/[email protected]/

-- Mukesh

Quoted 20 lines
---
  drivers/remoteproc/qcom_q6v5_pas.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
drivers/remoteproc/qcom_q6v5_pas.c +3 -2
index e34d82b18a67..a1d69721a0e7 100644
@@ -105,8 +105,9 @@ struct qcom_adsp {
  	struct qcom_scm_pas_metadata dtb_pas_metadata;
  };
 
-void adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment,
-		       void *dest, size_t offset, size_t size)
+static void adsp_segment_dump(struct rproc *rproc,
+			      struct rproc_dump_segment *segment,
+			      void *dest, size_t offset, size_t size)
  {
  	struct qcom_adsp *adsp = rproc->priv;
  	int total_offset;