* [PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch
@ 2007-03-26 10:27 Wu, Bryan
2007-03-26 11:00 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Wu, Bryan @ 2007-03-26 10:27 UTC (permalink / raw)
To: mingo, arjan, Andrew Morton, linux-kernel
Hi folks,
As struct mm_struct vm_mm is hidden in struct vm_area_struct in NOMMU
arch, this is a fixing method when compiling failure on blackfin arch.
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
kernel/signal.c | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-2.6/kernel/signal.c
===================================================================
--- linux-2.6.orig/kernel/signal.c
+++ linux-2.6/kernel/signal.c
@@ -807,7 +807,11 @@
static int print_vma(struct vm_area_struct *vma)
{
+#ifdef CONFIG_MMU
struct mm_struct *mm = vma->vm_mm;
+#else
+ struct mm_struct *mm = 0;
+#endif
struct file *file = vma->vm_file;
int flags = vma->vm_flags;
unsigned long ino = 0;
_
Thanks,
-Bryan Wu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch
2007-03-26 10:27 [PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch Wu, Bryan
@ 2007-03-26 11:00 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2007-03-26 11:00 UTC (permalink / raw)
To: Wu, Bryan; +Cc: arjan, Andrew Morton, linux-kernel
* Wu, Bryan <bryan.wu@analog.com> wrote:
> +#ifdef CONFIG_MMU
> struct mm_struct *mm = vma->vm_mm;
> +#else
> + struct mm_struct *mm = 0;
> +#endif
s/0/NULL ?
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-26 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 10:27 [PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch Wu, Bryan
2007-03-26 11:00 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®