linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Suppress mm/memory.o warning on older compilers if !CONFIG_NUMA_BALANCING
@ 2012-12-17 11:49 Mel Gorman
  2012-12-17 20:49 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Mel Gorman @ 2012-12-17 11:49 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-mm, linux-kernel, kbuild test robot

The kbuild test robot reported the following after the merge of Automatic
NUMA Balancing when cross-compiling for avr32.

mm/memory.c: In function 'do_pmd_numa_page':
mm/memory.c:3593: warning: no return statement in function returning non-void

The code is unreachable but the avr32 cross-compiler was not new enough
to know that. This patch suppresses the warning.

Signed-off-by: Mel Gorman <mgorman@suse.de>
---
 mm/memory.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/memory.c b/mm/memory.c
index e6a3b93..23f1fdf 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3590,6 +3590,7 @@ static int do_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
 		     unsigned long addr, pmd_t *pmdp)
 {
 	BUG();
+	return 0;
 }
 #endif /* CONFIG_NUMA_BALANCING */
 

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

end of thread, other threads:[~2012-12-18  8:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 11:49 [PATCH] mm: Suppress mm/memory.o warning on older compilers if !CONFIG_NUMA_BALANCING Mel Gorman
2012-12-17 20:49 ` Andrew Morton
2012-12-18  7:34   ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).