[PATCH] drivers: base: Add prototype declaration in memory.c

From: Rashika Kheria
Date: Wed Dec 18 2013 - 01:40:08 EST


Add the prototype declaration of function memory_block_size_bytes() in
memory.c.

This eliminates the following warning in memory.c:
drivers/base/memory.c:87:1: warning: no previous prototype for âmemory_block_size_bytesâ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
drivers/base/memory.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index bece691..cfa03de 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -83,6 +83,7 @@ static void memory_block_release(struct device *dev)
kfree(mem);
}

+unsigned long __weak memory_block_size_bytes(void);
unsigned long __weak memory_block_size_bytes(void)
{
return MIN_MEMORY_BLOCK_SIZE;
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/