Skip to contentSkip to conversation

- Fix GRU compile error w/o CONFIG_HUGETLB_PAGE

PATCH New Jack Steiner 1 participant 1 message Dec 9, 2008 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - Fix GRU compile error w/o CONFIG_HUGETLB_PAGE

Eliminate compile error when compiling without CONFIG_HUGETLB_PAGE.

---
 drivers/misc/sgi-gru/grufault.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/misc/sgi-gru/grufault.c +4 -0
Index: linux/drivers/misc/sgi-gru/grufault.c
===================================================================
@@ -254,7 +254,11 @@ static int atomic_pte_lookup(struct vm_a
 		return 1;
 
 	*paddr = pte_pfn(pte) << PAGE_SHIFT;
+#ifdef CONFIG_HUGETLB_PAGE
 	*pageshift = is_vm_hugetlb_page(vma) ? HPAGE_SHIFT : PAGE_SHIFT;
+#else
+	*pageshift = PAGE_SHIFT;
+#endif
 	return 0;
 
 err: