Skip to content

Commit

Permalink
nommu: fix compilation of nommu.c
Browse files Browse the repository at this point in the history
Compiling 3.5-rc1 for nommu targets gives:

  CC      mm/nommu.o
mm/nommu.c: In function ‘sys_mmap_pgoff’:
mm/nommu.c:1489:2: error: ‘ret’ undeclared (first use in this function)
mm/nommu.c:1489:2: note: each undeclared identifier is reported only once for each function it appears in

It is trivially fixed by replacing 'ret' with the local variable that is
already defined for the return value 'retval'.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Greg Ungerer authored and Al Viro committed Jun 4, 2012
1 parent 9171c67 commit ad1ed29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len,

flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);

ret = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff);
retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff);

if (file)
fput(file);
Expand Down

0 comments on commit ad1ed29

Please sign in to comment.