kernel-testers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] - Fix GRU compile error w/o CONFIG_HUGETLB_PAGE
@ 2008-12-09 16:51 Jack Steiner
  0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2008-12-09 16:51 UTC (permalink / raw)
  To: linux-kernel, linux-ia64; +Cc: a.beregalov, kernel-testers

Eliminate compile error when compiling without CONFIG_HUGETLB_PAGE.

Signed-off-by: Jack Steiner <steiner@sgi.com>

---
 drivers/misc/sgi-gru/grufault.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux/drivers/misc/sgi-gru/grufault.c
===================================================================
--- linux.orig/drivers/misc/sgi-gru/grufault.c	2008-12-08 08:25:57.000000000 -0600
+++ linux/drivers/misc/sgi-gru/grufault.c	2008-12-09 09:35:02.000000000 -0600
@@ -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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-09 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 16:51 [PATCH] - Fix GRU compile error w/o CONFIG_HUGETLB_PAGE Jack Steiner

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).