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 |
---|---|---|
AUTHORS | -rw-r--r-- | 2.6 KB |
CHANGES | -rw-r--r-- | 46.2 KB |
Kconfig | -rw-r--r-- | 7.2 KB |
Makefile | -rw-r--r-- | 614 bytes |
README | -rw-r--r-- | 38.3 KB |
TODO | -rw-r--r-- | 5.2 KB |
asn1.c | -rw-r--r-- | 14.9 KB |
cache.c | -rw-r--r-- | 7.9 KB |
cifs_debug.c | -rw-r--r-- | 17.2 KB |
cifs_debug.h | -rw-r--r-- | 2.4 KB |
cifs_dfs_ref.c | -rw-r--r-- | 9.5 KB |
cifs_fs_sb.h | -rw-r--r-- | 3.1 KB |
cifs_spnego.c | -rw-r--r-- | 4.8 KB |
cifs_spnego.h | -rw-r--r-- | 1.6 KB |
cifs_unicode.c | -rw-r--r-- | 10.5 KB |
cifs_unicode.h | -rw-r--r-- | 9.1 KB |
cifs_uniupr.h | -rw-r--r-- | 12.6 KB |
cifsacl.c | -rw-r--r-- | 35.8 KB |
cifsacl.h | -rw-r--r-- | 2.9 KB |
cifsencrypt.c | -rw-r--r-- | 20.7 KB |
cifsfs.c | -rw-r--r-- | 32.2 KB |
cifsfs.h | -rw-r--r-- | 5.7 KB |
cifsglob.h | -rw-r--r-- | 39.9 KB |
cifspdu.h | -rw-r--r-- | 80.8 KB |
cifsproto.h | -rw-r--r-- | 21.8 KB |
cifssmb.c | -rw-r--r-- | 189.2 KB |
connect.c | -rw-r--r-- | 111.1 KB |
dir.c | -rw-r--r-- | 20.6 KB |
dns_resolve.c | -rw-r--r-- | 2.8 KB |
dns_resolve.h | -rw-r--r-- | 1.2 KB |
export.c | -rw-r--r-- | 2.4 KB |
file.c | -rw-r--r-- | 87.4 KB |
fscache.c | -rw-r--r-- | 6.4 KB |
fscache.h | -rw-r--r-- | 4.5 KB |
inode.c | -rw-r--r-- | 58.8 KB |
ioctl.c | -rw-r--r-- | 3.0 KB |
link.c | -rw-r--r-- | 14.8 KB |
misc.c | -rw-r--r-- | 15.9 KB |
netmisc.c | -rw-r--r-- | 39.2 KB |
nterr.c | -rw-r--r-- | 33.5 KB |
nterr.h | -rw-r--r-- | 30.0 KB |
ntlmssp.h | -rw-r--r-- | 5.7 KB |
readdir.c | -rw-r--r-- | 23.5 KB |
rfc1002pdu.h | -rw-r--r-- | 2.8 KB |
sess.c | -rw-r--r-- | 28.6 KB |
smb1ops.c | -rw-r--r-- | 19.6 KB |
smb2glob.h | -rw-r--r-- | 1.4 KB |
smb2inode.c | -rw-r--r-- | 4.5 KB |
smb2maperror.c | -rw-r--r-- | 126.7 KB |
smb2misc.c | -rw-r--r-- | 10.5 KB |
smb2ops.c | -rw-r--r-- | 9.5 KB |
smb2pdu.c | -rw-r--r-- | 29.6 KB |
smb2pdu.h | -rw-r--r-- | 19.1 KB |
smb2proto.h | -rw-r--r-- | 3.8 KB |
smb2status.h | -rw-r--r-- | 125.2 KB |
smb2transport.c | -rw-r--r-- | 4.7 KB |
smbencrypt.c | -rw-r--r-- | 6.0 KB |
smberr.h | -rw-r--r-- | 7.5 KB |
smbfsctl.h | -rw-r--r-- | 4.7 KB |
transport.c | -rw-r--r-- | 23.3 KB |
xattr.c | -rw-r--r-- | 11.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...