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 |
---|---|---|
Kconfig | -rw-r--r-- | 2.3 KB |
Makefile | -rw-r--r-- | 275 bytes |
compat.c | -rw-r--r-- | 3.2 KB |
dquot.c | -rw-r--r-- | 73.0 KB |
netlink.c | -rw-r--r-- | 2.6 KB |
quota.c | -rw-r--r-- | 9.6 KB |
quota_tree.c | -rw-r--r-- | 16.5 KB |
quota_tree.h | -rw-r--r-- | 689 bytes |
quota_v1.c | -rw-r--r-- | 6.2 KB |
quota_v2.c | -rw-r--r-- | 10.1 KB |
quotaio_v1.h | -rw-r--r-- | 1.2 KB |
quotaio_v2.h | -rw-r--r-- | 2.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...