summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-07-12 11:01:52 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2019-07-12 11:08:31 +0200
commit286d8c46ed06d5fc1b8c212356a11a19b2c94bc4 (patch)
tree64fa879c312d6a52f90e6dbf3f7be2d66de3ddd4 /fs/proc
parentbf47d8537eef13879c1814b210bf714917687574 (diff)
mm: proc: task_mmu: silence compiler warning
Prevents: fs/proc/task_mmu.c:761:7: warning: ‘last_vma’ may be used uninitialized in this function [-Wmaybe-uninitialized] last_vma is guarded by 'rollup_mode = true' and thus never accessed uninitalized. Upstream in the meantime refactored the code and thus does not see the issue. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/task_mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 309d24118f9a..755149cfcf23 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -758,7 +758,7 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
};
int ret = 0;
bool rollup_mode;
- bool last_vma;
+ bool last_vma = true;
if (priv->rollup) {
rollup_mode = true;