aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 0c6bc602e6c4..822c2d506518 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -322,6 +322,8 @@ static inline void task_context_switch_counts(struct seq_file *m,
322 p->nivcsw); 322 p->nivcsw);
323} 323}
324 324
325#ifdef CONFIG_MMU
326
325struct stack_stats { 327struct stack_stats {
326 struct vm_area_struct *vma; 328 struct vm_area_struct *vma;
327 unsigned long startpage; 329 unsigned long startpage;
@@ -402,6 +404,11 @@ static inline void task_show_stack_usage(struct seq_file *m,
402 mmput(mm); 404 mmput(mm);
403 } 405 }
404} 406}
407#else
408static void task_show_stack_usage(struct seq_file *m, struct task_struct *task)
409{
410}
411#endif /* CONFIG_MMU */
405 412
406int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, 413int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
407 struct pid *pid, struct task_struct *task) 414 struct pid *pid, struct task_struct *task)
@@ -564,7 +571,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
564 rsslim, 571 rsslim,
565 mm ? mm->start_code : 0, 572 mm ? mm->start_code : 0,
566 mm ? mm->end_code : 0, 573 mm ? mm->end_code : 0,
567 (permitted) ? task->stack_start : 0, 574 (permitted && mm) ? task->stack_start : 0,
568 esp, 575 esp,
569 eip, 576 eip,
570 /* The signal information here is obsolete. 577 /* The signal information here is obsolete.