mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
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 14fd403f21
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.
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
fbea668498
commit
84cd8453f3
@ -10,11 +10,13 @@
|
|||||||
* we simulate an x86-style page table for the linux mm code
|
* 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/bitops.h>
|
||||||
|
#include <linux/spinlock.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
|
|
||||||
|
struct vm_area_struct;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel
|
* kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel
|
||||||
* memory. For the return value to be meaningful, ADDR must be >=
|
* memory. For the return value to be meaningful, ADDR must be >=
|
||||||
|
Loading…
Reference in New Issue
Block a user