Skip to content

Commit 6dec0dd

Browse files
arndbtorvalds
authored andcommitted
procfs: remove unused variable
In NOMMU configurations, we get a warning about a variable that has become unused: fs/proc/task_nommu.c: In function 'nommu_vma_show': fs/proc/task_nommu.c:148:28: error: unused variable 'priv' [-Werror=unused-variable] Link: http://lkml.kernel.org/r/20170911200231.3171415-1-arnd@arndb.de Fixes: 1240ea0 ("fs, proc: remove priv argument from is_stack") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c848c49 commit 6dec0dd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/proc/task_nommu.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma,
145145
int is_pid)
146146
{
147147
struct mm_struct *mm = vma->vm_mm;
148-
struct proc_maps_private *priv = m->private;
149148
unsigned long ino = 0;
150149
struct file *file;
151150
dev_t dev = 0;

0 commit comments

Comments
 (0)