Skip to contentSkip to conversation

linux-next: build warning after merge of the akpm-current tree

PATCH In review Stephen Rothwell 3 participants 3 messages Aug 1, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

fs/proc/task_mmu.c: In function 'show_map_vma':
fs/proc/task_mmu.c:285:28: warning: unused variable 'priv' [-Wunused-variable]

  struct proc_maps_private *priv = m->private;
                            ^

Introduced by commit

14ccc3193225 ("fs, proc: remove priv argument from is_stack")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

PATCH 1/1 fs, proc: remove unused variable

The last cleanup can go a little further, as shown by this warning:

fs/proc/task_mmu.c: In function 'show_map_vma':
fs/proc/task_mmu.c:285:28: error: unused variable 'priv' [-Werror=unused-variable]

Fixes 14ccc3193225 ("fs, proc: remove priv argument from is_stack")
---
 fs/proc/task_mmu.c | 1 -
 1 file changed, 1 deletion(-)
fs/proc/task_mmu.c +0 -1
index 9782dedeead7..186e907187ab 100644
@@ -282,7 +282,6 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
 {
 	struct mm_struct *mm = vma->vm_mm;
 	struct file *file = vma->vm_file;
-	struct proc_maps_private *priv = m->private;
 	vm_flags_t flags = vma->vm_flags;
 	unsigned long ino = 0;
 	unsigned long long pgoff = 0;
Signature · 1 line
2.9.0
#2 lore raw

Re: [PATCH] fs, proc: remove unused variable

Quoted 7 lines · Arnd Bergmann

The last cleanup can go a little further, as shown by this warning:

fs/proc/task_mmu.c: In function 'show_map_vma':
fs/proc/task_mmu.c:285:28: error: unused variable 'priv' [-Werror=unused-variable]

Fixes 14ccc3193225 ("fs, proc: remove priv argument from is_stack")

Thanks Arnd! Andrew, could you fold this into fs-proc-remove-priv-argument-from-is_stack.patch please?

Quoted 19 lines
---
 fs/proc/task_mmu.c | 1 -
 1 file changed, 1 deletion(-)
fs/proc/task_mmu.c +0 -1
index 9782dedeead7..186e907187ab 100644
@@ -282,7 +282,6 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
 {
 	struct mm_struct *mm = vma->vm_mm;
 	struct file *file = vma->vm_file;
-	struct proc_maps_private *priv = m->private;
 	vm_flags_t flags = vma->vm_flags;
 	unsigned long ino = 0;
 	unsigned long long pgoff = 0;
Signature · 1 line
2.9.0
Signature · 2 lines
Michal Hocko
SUSE Labs