Skip to contentSkip to conversation

vdso print fatal signals: fix compiling error bug in nommu arch

PATCH In review Wu, Bryan 2 participants 2 messages Mar 26, 2007

lore
Share & tools
lore

Wu, Bryan

author
#0 lore raw

PATCH 1/1 vdso print fatal signals: fix compiling error bug in nommu arch

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.

---

 kernel/signal.c |    4 ++++
 1 file changed, 4 insertions(+)
kernel/signal.c +4 -0
Index: 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

#1 lore raw

kernel/signal.c line 814

Quoted 5 lines · Wu, Bryan
kernel/signal.c +4 -0
+#ifdef CONFIG_MMU
 	struct mm_struct *mm = vma->vm_mm;
+#else
+	struct mm_struct *mm = 0;
+#endif

s/0/NULL ?

Ingo