public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: base: Add prototype declaration in memory.c
@ 2013-12-18  6:39 Rashika Kheria
  2013-12-18 15:34 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Rashika Kheria @ 2013-12-18  6:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, josh

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@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 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


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

end of thread, other threads:[~2013-12-20 15:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18  6:39 [PATCH] drivers: base: Add prototype declaration in memory.c Rashika Kheria
2013-12-18 15:34 ` Greg Kroah-Hartman
2013-12-18 19:01   ` josh
2013-12-18 19:03     ` Greg Kroah-Hartman
2013-12-18 19:10       ` josh
2013-12-18 19:18         ` Greg Kroah-Hartman
2013-12-19 11:24 ` [PATCH v2] drivers: base: Add prototype declaration to the header file Rashika Kheria
2013-12-19 14:29   ` Josh Triplett
2013-12-19 18:13   ` Greg Kroah-Hartman
2013-12-19 18:41     ` Josh Triplett
2013-12-20 15:08 ` [PATCH v3] " Rashika Kheria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox