diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-24 23:15:15 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-24 23:15:15 -0400 |
commit | c373ba999103fa794f041eab5bd490714d2dee88 (patch) | |
tree | 8f2b445b1e0af2491c83527967dbcda76054a486 /fs/proc/array.c | |
parent | 6f3529f00a0a9ac06413d18d3926adf099cb59af (diff) | |
parent | 851b147e4411df6a1e7e90e2a609773c277eefd2 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 0c6bc602e6c4..07f77a7945c3 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 | |||
325 | struct stack_stats { | 327 | struct 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 | ||
408 | static void task_show_stack_usage(struct seq_file *m, struct task_struct *task) | ||
409 | { | ||
410 | } | ||
411 | #endif /* CONFIG_MMU */ | ||
405 | 412 | ||
406 | int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, | 413 | int 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) |