Skip to contentSkip to conversation

remoteproc: make rproc_check_carveout_da static

PATCH In review YueHaibing 2 participants 2 messages Feb 1, 2019 Remote processor (remoteproc)

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 remoteproc: make rproc_check_carveout_da static

Fixes the following sparse warnings:

drivers/remoteproc/remoteproc_core.c:279:5: warning:
symbol 'rproc_check_carveout_da' was not declared. Should it be static?

---
 drivers/remoteproc/remoteproc_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/remoteproc/remoteproc_core.c +3 -2
index 54ec38f..5d4954d 100644
@@ -276,8 +276,9 @@ rproc_find_carveout_by_name(struct rproc *rproc, const char *name, ...)
  *
  * Return: 0 if carveout match request else -ENOMEM
  */
-int rproc_check_carveout_da(struct rproc *rproc, struct rproc_mem_entry *mem,
-			    u32 da, u32 len)
+static int rproc_check_carveout_da(struct rproc *rproc,
+				   struct rproc_mem_entry *mem,
+				   u32 da, u32 len)
 {
 	struct device *dev = &rproc->dev;
 	int delta = 0;
Signature · 1 line
2.7.0
#1 lore raw

Hi Yue,

Quoted 9 lines

-----Original Message-----
From: [email protected] <linux-remoteproc- [email protected]> On Behalf Of YueHaibing
Sent: vendredi 1 février 2019 04:13
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; YueHaibing <[email protected]>
Subject: [PATCH -next] remoteproc: make rproc_check_carveout_da static

Quoted 4 lines

Fixes the following sparse warnings:

drivers/remoteproc/remoteproc_core.c:279:5: warning:
symbol 'rproc_check_carveout_da' was not declared. Should it be static?

Correction already sent on ML few weeks ago. See [1]

Regards,
Loic

[1] https://patchwork.kernel.org/patch/10755763/

Quoted 28 lines
---
 drivers/remoteproc/remoteproc_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/remoteproc/remoteproc_core.c +3 -2
index 54ec38f..5d4954d 100644
@@ -276,8 +276,9 @@ rproc_find_carveout_by_name(struct rproc *rproc,
 const char *name, ...)
  *
  * Return: 0 if carveout match request else -ENOMEM
  */
-int rproc_check_carveout_da(struct rproc *rproc, struct rproc_mem_entry
 *mem,
-			    u32 da, u32 len)
+static int rproc_check_carveout_da(struct rproc *rproc,
+				   struct rproc_mem_entry *mem,
+				   u32 da, u32 len)
 {
drivers/remoteproc/remoteproc_core.c +0 -1
 	struct device *dev = &rproc->dev;
 	int delta = 0;
--

2.7.0