Skip to content

Commit ad1ed29

Browse files
gregungererAl Viro
authored and
Al Viro
committed
nommu: fix compilation of nommu.c
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>
1 parent 9171c67 commit ad1ed29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/nommu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len,
14861486

14871487
flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
14881488

1489-
ret = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff);
1489+
retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff);
14901490

14911491
if (file)
14921492
fput(file);

0 commit comments

Comments
 (0)