Files
tegra-linux-noble/include/linux
Mark Salter be8cfc4af1 c/r: prctl: fix build error for no-MMU case
Commit 1ad75b9e16 ("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 6e14154676 ("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>
2012-09-25 08:59:21 -07:00
..
2012-08-02 13:51:46 -04:00
2012-07-30 18:16:01 -07:00
2012-07-30 18:15:23 -07:00
2012-07-30 17:25:21 -07:00
2012-08-07 10:10:57 +02:00
2012-07-31 18:42:43 -07:00
2012-07-30 17:25:11 -07:00
2012-09-17 15:00:38 -07:00
2012-09-17 15:00:38 -07:00
2012-07-22 23:57:58 +04:00
2012-08-04 01:24:44 +04:00
2012-08-06 13:33:21 -07:00
2012-07-19 10:38:32 -04:00
2012-07-31 08:16:42 -05:00
2012-08-22 10:24:41 -04:00
2012-09-17 15:00:37 -07:00
2012-07-29 21:24:13 +04:00
2012-07-09 16:42:24 -04:00
2012-07-30 19:06:52 -04:00
2012-07-30 19:06:52 -04:00
2012-07-10 10:32:06 -05:00
2012-07-31 18:42:43 -07:00
2012-08-30 13:14:48 -04:00
2012-07-12 07:54:46 -07:00
2012-07-19 10:38:32 -04:00
2012-07-30 17:25:20 -07:00
2012-07-16 22:31:34 -07:00
2012-07-23 00:58:46 -07:00
2012-07-22 23:57:55 +04:00
2012-07-31 08:16:24 -06:00
2012-07-31 18:42:50 -07:00
2012-08-04 12:15:37 +04:00