Subject: [PATCH] Correct build warnings with CONFIG_TRANSPARENT_HUGEPAGE disabled

From: Nathan Fontenot <[email-masked]>
Date: Mon, 24 Jun 2013 09:35:55 -0500

Building with CONFIG_TRANSPARENT_HUGEPAGE disabled causes the following
build wearnings;

powerpc/arch/powerpc/include/asm/mmu-hash64.h: In function ‘__hash_page_thp’:
powerpc/arch/powerpc/include/asm/mmu-hash64.h:354: warning: no return statement in function returning non-void

This patch adds a return -1 to the static inline for __hash_page_thp()
to correct the warnings.

Signed-off-by: Nathan Fontenot <[email-masked]>
---
 arch/powerpc/include/asm/mmu-hash64.h |    1 +
 1 file changed, 1 insertion(+)

Index: powerpc/arch/powerpc/include/asm/mmu-hash64.h
===================================================================
--- powerpc.orig/arch/powerpc/include/asm/mmu-hash64.h	2013-06-24 07:54:08.000000000 -0500
+++ powerpc/arch/powerpc/include/asm/mmu-hash64.h	2013-06-24 08:07:56.000000000 -0500
@@ -351,6 +351,7 @@
 				  int ssize, unsigned int psize)
 {
 	BUG();
+	return -1;
 }
 #endif
 extern void hash_failure_debug(unsigned long ea, unsigned long access,