Revision be8cfc4af15cf611dfeb66a1fb5df43d5f1e280a authored by Mark Salter on 25 September 2012, 00:17:38 UTC, committed by Linus Torvalds on 25 September 2012, 15:59:21 UTC
Commit 1ad75b9e1628 ("c/r: prctl: add minimal address test to PR_SET_MM") added some address checking to prctl_set_mm() used by checkpoint-restore. This causes a build error for no-MMU systems: kernel/sys.c: In function 'prctl_set_mm': kernel/sys.c:1868:34: error: 'mmap_min_addr' undeclared (first use in this function) The test for mmap_min_addr doesn't make a lot of sense for no-MMU code as noted in commit 6e1415467614 ("NOMMU: Optimise away the {dac_,}mmap_min_addr tests"). This patch defines mmap_min_addr as 0UL in the no-MMU case so that the compiler will optimize away tests for "addr < mmap_min_addr". Signed-off-by: Mark Salter <msalter@redhat.com> Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org> Cc: <stable@vger.kernel.org> [3.6.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b5bd6a0
File | Mode | Size |
---|---|---|
blocklayout | ||
objlayout | ||
Kconfig | -rw-r--r-- | 5.2 KB |
Makefile | -rw-r--r-- | 1.1 KB |
cache_lib.c | -rw-r--r-- | 3.9 KB |
cache_lib.h | -rw-r--r-- | 1.1 KB |
callback.c | -rw-r--r-- | 9.5 KB |
callback.h | -rw-r--r-- | 5.3 KB |
callback_proc.c | -rw-r--r-- | 15.0 KB |
callback_xdr.c | -rw-r--r-- | 25.0 KB |
client.c | -rw-r--r-- | 37.2 KB |
delegation.c | -rw-r--r-- | 18.4 KB |
delegation.h | -rw-r--r-- | 2.4 KB |
dir.c | -rw-r--r-- | 55.2 KB |
direct.c | -rw-r--r-- | 27.7 KB |
dns_resolve.c | -rw-r--r-- | 9.6 KB |
dns_resolve.h | -rw-r--r-- | 812 bytes |
file.c | -rw-r--r-- | 24.2 KB |
fscache-index.c | -rw-r--r-- | 9.3 KB |
fscache.c | -rw-r--r-- | 13.7 KB |
fscache.h | -rw-r--r-- | 6.3 KB |
getroot.c | -rw-r--r-- | 3.4 KB |
idmap.c | -rw-r--r-- | 20.8 KB |
inode.c | -rw-r--r-- | 47.8 KB |
internal.h | -rw-r--r-- | 19.4 KB |
iostat.h | -rw-r--r-- | 1.6 KB |
mount_clnt.c | -rw-r--r-- | 11.7 KB |
namespace.c | -rw-r--r-- | 6.6 KB |
netns.h | -rw-r--r-- | 669 bytes |
nfs.h | -rw-r--r-- | 993 bytes |
nfs2super.c | -rw-r--r-- | 569 bytes |
nfs2xdr.c | -rw-r--r-- | 25.6 KB |
nfs3acl.c | -rw-r--r-- | 10.1 KB |
nfs3client.c | -rw-r--r-- | 1.7 KB |
nfs3proc.c | -rw-r--r-- | 24.3 KB |
nfs3super.c | -rw-r--r-- | 569 bytes |
nfs3xdr.c | -rw-r--r-- | 54.3 KB |
nfs4_fs.h | -rw-r--r-- | 13.6 KB |
nfs4client.c | -rw-r--r-- | 16.6 KB |
nfs4file.c | -rw-r--r-- | 2.8 KB |
nfs4filelayout.c | -rw-r--r-- | 35.5 KB |
nfs4filelayout.h | -rw-r--r-- | 5.0 KB |
nfs4filelayoutdev.c | -rw-r--r-- | 20.6 KB |
nfs4getroot.c | -rw-r--r-- | 1.2 KB |
nfs4namespace.c | -rw-r--r-- | 9.4 KB |
nfs4proc.c | -rw-r--r-- | 185.9 KB |
nfs4renewd.c | -rw-r--r-- | 4.2 KB |
nfs4state.c | -rw-r--r-- | 53.5 KB |
nfs4super.c | -rw-r--r-- | 8.6 KB |
nfs4sysctl.c | -rw-r--r-- | 1.4 KB |
nfs4xdr.c | -rw-r--r-- | 188.8 KB |
nfsroot.c | -rw-r--r-- | 9.5 KB |
pagelist.c | -rw-r--r-- | 11.8 KB |
pnfs.c | -rw-r--r-- | 45.5 KB |
pnfs.h | -rw-r--r-- | 15.8 KB |
pnfs_dev.c | -rw-r--r-- | 7.3 KB |
proc.c | -rw-r--r-- | 20.8 KB |
read.c | -rw-r--r-- | 17.3 KB |
super.c | -rw-r--r-- | 68.5 KB |
symlink.c | -rw-r--r-- | 1.6 KB |
sysctl.c | -rw-r--r-- | 1.2 KB |
unlink.c | -rw-r--r-- | 14.3 KB |
write.c | -rw-r--r-- | 47.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...