The patch titled Subject: c/r: prctl: fix build error for no-MMU case has been added to the -mm tree. Its filename is c-r-prctl-fix-build-error-for-no-mmu-case.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Mark Salter <msalter@xxxxxxxxxx> Subject: c/r: prctl: fix build error for no-MMU case Commit 1ad75b9e1 ("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 6e1415467. 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@xxxxxxxxxx> Reviewed-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> [3.6.x] Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/security.h | 1 + 1 file changed, 1 insertion(+) diff -puN include/linux/security.h~c-r-prctl-fix-build-error-for-no-mmu-case include/linux/security.h --- a/include/linux/security.h~c-r-prctl-fix-build-error-for-no-mmu-case +++ a/include/linux/security.h @@ -118,6 +118,7 @@ void reset_security_ops(void); extern unsigned long mmap_min_addr; extern unsigned long dac_mmap_min_addr; #else +#define mmap_min_addr 0UL #define dac_mmap_min_addr 0UL #endif _ Patches currently in -mm which might be from msalter@xxxxxxxxxx are c-r-prctl-fix-build-error-for-no-mmu-case.patch linux-next.patch cross-arch-dont-corrupt-personality-flags-upon-exec.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html