Fwd:
Subsystems (8)
---------- Forwarded Message ----------
Subject:
Date: Monday 27 April 2009
From: [email protected]
To: "no To-header on input" <unlisted-recipients:; @gmail-pop.l.google.com>
Quoted 1 line
From [email protected] Mon Apr 27 16:28:40 2009
References: <[email protected]>
User-Agent: quilt/0.46-1
Date: Mon, 27 Apr 2009 16:20:13 +0200
From: [email protected]
To: [email protected]
Cc: [email protected],
[email protected],
[email protected],
[email protected],
[email protected],
Sam Ravnborg <[email protected]>,
Remis Lima Baima <[email protected]>
Subject: [RFC 03/17] asm-generic: rename mman.h to mman-common.h
Content-Disposition: inline; filename=0018-asm-generic-make-generic-mman.h- header-generic.patch
X-Provags-ID: V01U2FsdGVkX18Xnuysx4P/H1PKB8mb4S4lLJMdyLe5LlF6OUh
uTtfXAZra+pmP0gOZM6rzVh4tacTrkmdtFLejvlgSM/Qgihyd6 qGAlBbr5jRJrP5qkXAUFA==
The existing asm-generic/mman.h is incomplete and included by some architectures. New architectures should be able to use a generic version, so rename the existing file and change all users, which lets us add the new file.
---
arch/arm/include/asm/mman.h | 2 1 + 1 - 0 ! arch/avr32/include/asm/mman.h | 2 1 + 1 - 0 ! arch/cris/include/asm/mman.h | 2 1 + 1 - 0 ! arch/frv/include/asm/mman.h | 2 1 + 1 - 0 ! arch/h8300/include/asm/mman.h | 2 1 + 1 - 0 ! arch/ia64/include/asm/mman.h | 2 1 + 1 - 0 ! arch/m32r/include/asm/mman.h | 2 1 + 1 - 0 ! arch/m68k/include/asm/mman.h | 2 1 + 1 - 0 ! arch/mn10300/include/asm/mman.h | 2 1 + 1 - 0 ! arch/powerpc/include/asm/mman.h | 2 1 + 1 - 0 ! arch/s390/include/asm/mman.h | 2 1 + 1 - 0 ! arch/sh/include/asm/mman.h | 2 1 + 1 - 0 ! arch/sparc/include/asm/mman.h | 2 1 + 1 - 0 ! arch/x86/include/asm/mman.h | 2 1 + 1 - 0 ! include/asm-generic/Kbuild | 2 1 + 1 - 0 ! include/asm-generic/mman-common.h | 41 41 + 0 - 0 ! include/asm-generic/mman.h | 41 0 + 41 - 0 ! 17 files changed, 56 insertions(+), 56 deletions(-) create mode 100644 include/asm-generic/mman-common.h
arch/arm/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __ARM_MMAN_H__#define __ARM_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/avr32/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __ASM_AVR32_MMAN_H__#define __ASM_AVR32_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/cris/include/asm/mman.h +1 -1
@@ -3,7 +3,7 @@/* verbatim copy of asm-i386/ version */ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/frv/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __ASM_MMAN_H__#define __ASM_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/h8300/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __H8300_MMAN_H__#define __H8300_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/ia64/include/asm/mman.h +1 -1
@@ -8,7 +8,7 @@* David Mosberger-Tang <[email protected]>, Hewlett-Packard Co */ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x00100/* stack-like segment */ #define MAP_GROWSUP 0x00200/* register stack-like segment */
arch/m68k/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __M68K_MMAN_H__#define __M68K_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/mn10300/include/asm/mman.h +1 -1
@@ -12,7 +12,7 @@#ifndef _ASM_MMAN_H#define _ASM_MMAN_H -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/powerpc/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_POWERPC_MMAN_H#define _ASM_POWERPC_MMAN_H -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> /* * This program is free software; you can redistribute it and/or
arch/s390/include/asm/mman.h +1 -1
@@ -9,7 +9,7 @@#ifndef __S390_MMAN_H__#define __S390_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/sh/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __ASM_SH_MMAN_H#define __ASM_SH_MMAN_H -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
arch/sparc/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __SPARC_MMAN_H__#define __SPARC_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> /* SunOS'ified... */
arch/x86/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_X86_MMAN_H#define _ASM_X86_MMAN_H -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_32BIT 0x40/* only give out 32bit addresses */
include/asm-generic/mman-common.h new file +14 -0
@@ -0,0 +1,41 @@ +#ifndef __ASM_GENERIC_MMAN_COMMON_H +#define __ASM_GENERIC_MMAN_COMMON_H + +/* +Author: Michael S. Tsirkin <[email protected]>, Mellanox Technologies Ltd. +Based on: asm-xxx/mman.h +*/ + +#define PROT_READ 0x1/* page can be read */ +#define PROT_WRITE 0x2/* page can be written */ +#define PROT_EXEC 0x4/* page can be executed */ +#define PROT_SEM 0x8/* page may be used for atomic ops */ +#define PROT_NONE 0x0/* page can not be accessed */ +#define PROT_GROWSDOWN 0x01000000/* mprotect flag: extend change to start of
growsdown vma */
+#define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of
growsup vma */
+
+#define MAP_SHARED 0x01 /* Share changes */
+#define MAP_PRIVATE 0x02 /* Changes are private */
+#define MAP_TYPE 0x0f /* Mask for type of mapping */
+#define MAP_FIXED 0x10 /* Interpret addr exactly */
+#define MAP_ANONYMOUS 0x20 /* don't use a file */
+
+#define MS_ASYNC 1 /* sync memory asynchronously */
+#define MS_INVALIDATE 2 /* invalidate the caches */
+#define MS_SYNC 4 /* synchronous memory sync */
+
+#define MADV_NORMAL 0 /* no further special treatment */
+#define MADV_RANDOM 1 /* expect random page references */
+#define MADV_SEQUENTIAL 2 /* expect sequential page references */
+#define MADV_WILLNEED 3 /* will need these pages */
+#define MADV_DONTNEED 4 /* don't need these pages */
+
+/* common parameters: try to keep these consistent across architectures */
+#define MADV_REMOVE 9 /* remove these pages & resources */
+#define MADV_DONTFORK 10 /* don't inherit across fork */
+#define MADV_DOFORK 11 /* do inherit across fork */
+
+/* compatibility flags */
+#define MAP_FILE 0
+
+#endif /* __ASM_GENERIC_MMAN_COMMON_H */
include/asm-generic/mman.h deleted +0 -14
@@ -1,41 +0,0 @@ -#ifndef _ASM_GENERIC_MMAN_H -#define _ASM_GENERIC_MMAN_H - -/* -Author: Michael S. Tsirkin <[email protected]>, Mellanox Technologies Ltd. -Based on: asm-xxx/mman.h -*/ - -#define PROT_READ 0x1/* page can be read */ -#define PROT_WRITE 0x2/* page can be written */ -#define PROT_EXEC 0x4/* page can be executed */ -#define PROT_SEM 0x8/* page may be used for atomic ops */ -#define PROT_NONE 0x0/* page can not be accessed */ -#define PROT_GROWSDOWN 0x01000000/* mprotect flag: extend change to start of
growsdown vma */
-#define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of
growsup vma */
-
-#define MAP_SHARED 0x01 /* Share changes */
-#define MAP_PRIVATE 0x02 /* Changes are private */
-#define MAP_TYPE 0x0f /* Mask for type of mapping */
-#define MAP_FIXED 0x10 /* Interpret addr exactly */
-#define MAP_ANONYMOUS 0x20 /* don't use a file */
-
-#define MS_ASYNC 1 /* sync memory asynchronously */
-#define MS_INVALIDATE 2 /* invalidate the caches */
-#define MS_SYNC 4 /* synchronous memory sync */
-
-#define MADV_NORMAL 0 /* no further special treatment */
-#define MADV_RANDOM 1 /* expect random page references */
-#define MADV_SEQUENTIAL 2 /* expect sequential page references */
-#define MADV_WILLNEED 3 /* will need these pages */
-#define MADV_DONTNEED 4 /* don't need these pages */
-
-/* common parameters: try to keep these consistent across architectures */
-#define MADV_REMOVE 9 /* remove these pages & resources */
-#define MADV_DONTFORK 10 /* don't inherit across fork */
-#define MADV_DOFORK 11 /* do inherit across fork */
-
-/* compatibility flags */
-#define MAP_FILE 0
-
-#endif
arch/m32r/include/asm/mman.h +1 -1
@@ -1,7 +1,7 @@#ifndef __M32R_MMAN_H__#define __M32R_MMAN_H__ -#include <asm-generic/mman.h> +#include <asm-generic/mman-common.h> #define MAP_GROWSDOWN 0x0100/* stack-like segment */ #define MAP_DENYWRITE 0x0800/* ETXTBSY */
include/asm-generic/Kbuild +1 -1
@@ -2,7 +2,7 @@ header-y += errno-base.h header-y += errno.h header-y += fcntl.h header-y += ioctl.h -header-y += mman.h +header-y += mman-common.h header-y += poll.h header-y += signal-defs.h header-y += statfs.h
Signature · 15 lines
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ------------------------------------------------------- -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Backed up the system lately?