]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mm/memory.c: suppress warning
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Dec 2012 23:59:24 +0000 (15:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:12 +0000 (17:15 -0800)
gcc-4.4.4 screws this up.

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

Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c

index e6a3b933517e0442c22aa89ab885ac6f2f95ae5b..23f1fdfdfcf13035ebb1e1731378d902de18c076 100644 (file)
@@ -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 */