[PATCH] Remove final references to deprecated "MAP_ANON" page protection flag
authorRobert P. J. Day <rpjday@mindspring.com>
Sat, 10 Feb 2007 09:42:56 +0000 (01:42 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:17 +0000 (10:51 -0800)
Remove the last vestiges of the long-deprecated "MAP_ANON" page protection
flag: use "MAP_ANONYMOUS" instead.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/aio.c
fs/binfmt_elf_fdpic.c
include/asm-alpha/mman.h
include/asm-generic/mman.h
include/asm-mips/mman.h
include/asm-parisc/mman.h
include/asm-xtensa/mman.h

index 55991e4132a7f30f778a7f86862b8992c59bafca..ee662589e5ecb4f3596b3a0c7231c0d99f8863cf 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -132,7 +132,7 @@ static int aio_setup_ring(struct kioctx *ctx)
        dprintk("attempting mmap of %lu bytes\n", info->mmap_size);
        down_write(&ctx->mm->mmap_sem);
        info->mmap_base = do_mmap(NULL, 0, info->mmap_size, 
-                                 PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE,
+                                 PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE,
                                  0);
        if (IS_ERR((void *)info->mmap_base)) {
                up_write(&ctx->mm->mmap_sem);
index a4d933a51208c5bcbfdd182b2412c3b1d369c140..5810aa1339fdeb5d6d98dd857328998bcde733e5 100644 (file)
@@ -372,7 +372,7 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm,
        down_write(&current->mm->mmap_sem);
        current->mm->start_brk = do_mmap(NULL, 0, stack_size,
                                         PROT_READ | PROT_WRITE | PROT_EXEC,
-                                        MAP_PRIVATE | MAP_ANON | MAP_GROWSDOWN,
+                                        MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN,
                                         0);
 
        if (IS_ERR_VALUE(current->mm->start_brk)) {
index 5f24c755f577d9fc48add5c52300f377ed2690e4..90d7c35d286703a86a4f1c59061b2212b2de367d 100644 (file)
@@ -49,7 +49,6 @@
 #define MADV_DOFORK    11              /* do inherit across fork */
 
 /* compatibility flags */
-#define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 
 #endif /* __ALPHA_MMAN_H__ */
index 3b41d2bb70da36bfd8d09a16dfb3f3e4581445b5..5e3dde2ee5adf37f5ccd62fa11f9b3878bc5a653 100644 (file)
@@ -36,7 +36,6 @@
 #define MADV_DOFORK    11              /* do inherit across fork */
 
 /* compatibility flags */
-#define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 
 #endif
index 046cf686bee7f74a773877ec658c29e8d8d10e2a..e4d6f1fb1cf765c5ca8e23c3e8438f39ebcc0e2d 100644 (file)
@@ -72,7 +72,6 @@
 #define MADV_DOFORK    11              /* do inherit across fork */
 
 /* compatibility flags */
-#define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 
 #endif /* _ASM_MMAN_H */
index 0ef15ee0f17ef8e21eaaf394838ed3cd5e965bb3..defe752cc996011164ee1600bd04e67441561fed 100644 (file)
@@ -55,7 +55,6 @@
 #define MADV_64M_PAGES  26              /* Use 64 Megabyte pages */
 
 /* compatibility flags */
-#define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 #define MAP_VARIABLE   0
 
index ba394cbb48071b03ddc789f21bf80fef84d50eb1..9b92620c8a1ed262d3b10a9cb44dd0b746feacc8 100644 (file)
@@ -79,7 +79,6 @@
 #define MADV_DOFORK    11              /* do inherit across fork */
 
 /* compatibility flags */
-#define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 
 #endif /* _XTENSA_MMAN_H */