diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2005-03-30 16:39:25 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-03-30 16:39:25 -0800 |
commit | f335faa05925e878eb50b822af3ea4961149bf76 (patch) | |
tree | 039621c31d75d98aaaca6100cac328a58a06f08e | |
parent | a3fdc0fa3b338831d3fd2c8d2442807de072ef90 (diff) | |
download | history-f335faa05925e878eb50b822af3ea4961149bf76.tar.gz |
[PATCH] nommu.c build error fix
- Argument addition of security_file_mmap.
- Because in_gate_area_no_task undefined with CONFIG_KALLSYM=y, add it.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | mm/nommu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index a9cf49a0e03507..f613db39e84743 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -396,6 +396,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned int vm_flags; void *result; int ret, membacked; + unsigned long reqprot = prot; /* do the simple checks first */ if (flags & MAP_FIXED || addr) { @@ -506,7 +507,7 @@ unsigned long do_mmap_pgoff(struct file *file, } /* allow the security API to have its say */ - ret = security_file_mmap(file, prot, flags); + ret = security_file_mmap(file, reqprot, prot, flags); if (ret) return ret; @@ -1063,3 +1064,7 @@ int __vm_enough_memory(long pages, int cap_sys_admin) return -ENOMEM; } +int in_gate_area_no_task(unsigned long addr) +{ + return 0; +} |