From: "Wu, Bryan" When adding utrace support to blackfin architecture, I found a compiling error in nommu related utrace stuff. Then this little patch will fix this for nommu arch utrace. Signed-off-by: Bryan Wu Cc: Roland McGrath Signed-off-by: Andrew Morton --- mm/nommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/nommu.c~utrace-nommu-fixup-support-utrace mm/nommu.c --- a/mm/nommu.c~utrace-nommu-fixup-support-utrace +++ a/mm/nommu.c @@ -673,7 +673,11 @@ static unsigned long determine_vm_flags( * it's being traced - otherwise breakpoints set in it may interfere * with another untraced process */ +#ifdef CONFIG_UTRACE + if (flags & MAP_PRIVATE) +#else if ((flags & MAP_PRIVATE) && (current->ptrace & PT_PTRACED)) +#endif vm_flags &= ~VM_MAYSHARE; return vm_flags; _