2013-04-04 09:18:05

by Sachin Kamat

[permalink] [raw]
Subject: [PATCH 1/1] regmap: cache: Make regcache_sync_block_raw static

regcache_sync_block_raw is used only in this file. Hence make it static.
Silences the following warning:
drivers/base/regmap/regcache.c:608:5: warning:
symbol 'regcache_sync_block_raw' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/base/regmap/regcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index d81f605..3ae8d9b 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -605,7 +605,7 @@ static int regcache_sync_block_raw_flush(struct regmap *map, const void **data,
return ret;
}

-int regcache_sync_block_raw(struct regmap *map, void *block,
+static int regcache_sync_block_raw(struct regmap *map, void *block,
unsigned int block_base, unsigned int start,
unsigned int end)
{
--
1.7.9.5


2013-04-05 10:28:52

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 1/1] regmap: cache: Make regcache_sync_block_raw static

On Thu, Apr 04, 2013 at 02:36:18PM +0530, Sachin Kamat wrote:
> regcache_sync_block_raw is used only in this file. Hence make it static.
> Silences the following warning:
> drivers/base/regmap/regcache.c:608:5: warning:
> symbol 'regcache_sync_block_raw' was not declared. Should it be static?

Applied, thanks.


Attachments:
(No filename) (312.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments