Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


bryan.wu at analog

Mar 26, 2007, 3:27 AM

Post #1 of 2 (328 views)
Permalink
[PATCH -mm] 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.

Signed-off-by: Bryan Wu <bryan.wu[at]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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


mingo at elte

Mar 26, 2007, 4:00 AM

Post #2 of 2 (298 views)
Permalink
Re: [PATCH -mm] vdso print fatal signals: fix compiling error bug in nommu arch [In reply to]

* Wu, Bryan <bryan.wu[at]analog.com> wrote:

> +#ifdef CONFIG_MMU
> struct mm_struct *mm = vma->vm_mm;
> +#else
> + struct mm_struct *mm = 0;
> +#endif

s/0/NULL ?

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.