Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4029a917 authored by Olaf Hering's avatar Olaf Hering Committed by Linus Torvalds
Browse files

unexport asm/shmparam.h



SHMLBA cant possible be used in userspace, see sparc versions of that header.

Do not export asm/shmparam.h during make headers_install_all
This removes another uservisible place of PAGE_SIZE

Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eb1f2930
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -30,6 +30,5 @@ unifdef-y += unistd.h
unifdef-y += user.h

# These probably shouldn't be exported
unifdef-y += shmparam.h
unifdef-y += elf.h
unifdef-y += page.h
+0 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ header-y += termbits.h
header-y += fcntl.h
header-y += ipc.h
header-y += poll.h
header-y += shmparam.h
header-y += sockios.h
header-y += ucontext.h
header-y += ioctl.h
+0 −2
Original line number Diff line number Diff line
/* $Id: shmparam.h,v 1.5 2001/09/24 21:17:57 kanoj Exp $ */
#ifndef _ASMSPARC64_SHMPARAM_H
#define _ASMSPARC64_SHMPARAM_H
#ifdef __KERNEL__

#include <asm/spitfire.h>

@@ -9,5 +8,4 @@
/* attach addr a multiple of this */
#define	SHMLBA	((PAGE_SIZE > L1DCACHE_SIZE) ? PAGE_SIZE : L1DCACHE_SIZE)

#endif /* __KERNEL__ */
#endif /* _ASMSPARC64_SHMPARAM_H */
+2 −0
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@
#define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages) */
#define SHMSEG SHMMNI			 /* max shared segs per process */

#ifdef __KERNEL__
#include <asm/shmparam.h>
#endif

/* Obsolete, used only for backwards compatibility and libc5 compiles */
struct shmid_ds {