From: James Bottomley Date: Fri, 14 Jan 2011 22:21:47 +0000 (-0600) Subject: parisc: fix compile breakage caused by inlining maybe_mkwrite X-Git-Tag: firefly_0821_release~7613^2~2651^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=84cd8453f30787504305a1a1f8dd5af7a92aa485;p=firefly-linux-kernel-4.4.55.git parisc: fix compile breakage caused by inlining maybe_mkwrite on Parisc, we have an include of linux/mm.h inside our asm/pgtable.h, so this patch commit 14fd403f2146f740942d78af4e0ee59396ad8eab Author: Andrea Arcangeli 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. Signed-off-by: James Bottomley --- diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index 865f37a8a881..6f1f65d3c0ef 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 /* for vm_area_struct */ #include +#include #include #include +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 >=