diff options
author | Kirill A. Shutemov <k.shutemov@gmail.com> | 2008-02-07 03:15:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:30 -0500 |
commit | ed7b1889da256977574663689b598d88950bbd23 (patch) | |
tree | bdbf8d12826dece7ec4ccb4edcb18cd66dc842a0 /include/linux/shm.h | |
parent | 6cc931b9b5ec652c90b928f3ec2163f261552c91 (diff) |
Unexport asm/page.h
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE
from userspace headers.
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/shm.h')
-rw-r--r-- | include/linux/shm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/shm.h b/include/linux/shm.h index eeaed921a1dc..eca6235a46c0 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h | |||
@@ -3,7 +3,11 @@ | |||
3 | 3 | ||
4 | #include <linux/ipc.h> | 4 | #include <linux/ipc.h> |
5 | #include <linux/errno.h> | 5 | #include <linux/errno.h> |
6 | #ifdef __KERNEL__ | ||
6 | #include <asm/page.h> | 7 | #include <asm/page.h> |
8 | #else | ||
9 | #include <unistd.h> | ||
10 | #endif | ||
7 | 11 | ||
8 | /* | 12 | /* |
9 | * SHMMAX, SHMMNI and SHMALL are upper limits are defaults which can | 13 | * SHMMAX, SHMMNI and SHMALL are upper limits are defaults which can |
@@ -13,7 +17,11 @@ | |||
13 | #define SHMMAX 0x2000000 /* max shared seg size (bytes) */ | 17 | #define SHMMAX 0x2000000 /* max shared seg size (bytes) */ |
14 | #define SHMMIN 1 /* min shared seg size (bytes) */ | 18 | #define SHMMIN 1 /* min shared seg size (bytes) */ |
15 | #define SHMMNI 4096 /* max num of segs system wide */ | 19 | #define SHMMNI 4096 /* max num of segs system wide */ |
20 | #ifdef __KERNEL__ | ||
16 | #define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages) */ | 21 | #define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages) */ |
22 | #else | ||
23 | #define SHMALL (SHMMAX/getpagesize()*(SHMMNI/16)) | ||
24 | #endif | ||
17 | #define SHMSEG SHMMNI /* max shared segs per process */ | 25 | #define SHMSEG SHMMNI /* max shared segs per process */ |
18 | 26 | ||
19 | #ifdef __KERNEL__ | 27 | #ifdef __KERNEL__ |