summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-14 01:28:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-14 03:53:15 +0200
commit6dec0dd4a627d15510c9435c4dbf4b9f4ffeeeb7 (patch)
tree6e5dd297dd71a8536dd9742227ec9f4c28a96adc /fs
parentdrivers/media/cec/cec-adap.c: fix build with gcc-4.4.4 (diff)
downloadlinux-6dec0dd4a627d15510c9435c4dbf4b9f4ffeeeb7.tar.xz
linux-6dec0dd4a627d15510c9435c4dbf4b9f4ffeeeb7.zip
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: 1240ea0dc3bb ("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>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/task_nommu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c
index dea90b566a6e..b00b766098fa 100644
--- a/fs/proc/task_nommu.c
+++ b/fs/proc/task_nommu.c
@@ -145,7 +145,6 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma,
int is_pid)
{
struct mm_struct *mm = vma->vm_mm;
- struct proc_maps_private *priv = m->private;
unsigned long ino = 0;
struct file *file;
dev_t dev = 0;