powerpc/64s: Fix get_hugepd_cache_index() build failure
[linux-2.6-microblaze.git] / arch / powerpc / include / asm / book3s / 64 / pgtable-64k.h
index 2fce349..ced7ee8 100644 (file)
@@ -45,9 +45,9 @@ static inline int hugepd_ok(hugepd_t hpd)
 /*
  * This should never get called
  */
-static inline int get_hugepd_cache_index(int index)
+static __always_inline int get_hugepd_cache_index(int index)
 {
-       BUG();
+       BUILD_BUG();
 }
 
 #endif /* CONFIG_HUGETLB_PAGE */