Linux PARISC architecture development
 help / color / mirror / Atom feed
* [PATCH] parisc: fix compile breakage caused by inlining maybe_mkwrite
@ 2011-01-14 22:21 James Bottomley
  0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2011-01-14 22:21 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: Parisc List, linux-arch

on Parisc, we have an include of linux/mm.h inside our asm/pgtable.h, so
this patch 

commit 14fd403f2146f740942d78af4e0ee59396ad8eab
Author: Andrea Arcangeli <aarcange@redhat.com>
Date:   Thu Jan 13 15:46:37 2011 -0800

    thp: export maybe_mkwrite

Causes us an unsatisfiable use of pte_mkwrite in linux/mm.h

The fix is obviously not to include linux/mm.h in our pgtable.h, which
unbreaks the build.

James

---

diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
index f3c0973..5d7b8ce 100644
--- a/arch/parisc/include/asm/pgtable.h
+++ b/arch/parisc/include/asm/pgtable.h
@@ -10,11 +10,13 @@
  * we simulate an x86-style page table for the linux mm code
  */
 
-#include <linux/mm.h>		/* for vm_area_struct */
 #include <linux/bitops.h>
+#include <linux/spinlock.h>
 #include <asm/processor.h>
 #include <asm/cache.h>
 
+struct vm_area_struct;
+
 /*
  * kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel
  * memory.  For the return value to be meaningful, ADDR must be >=



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

only message in thread, other threads:[~2011-01-14 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 22:21 [PATCH] parisc: fix compile breakage caused by inlining maybe_mkwrite James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox