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

Commit ed7b1889 authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Linus Torvalds
Browse files

Unexport asm/page.h



Do not export asm/page.h during make headers_install.  This removes PAGE_SIZE
from userspace headers.

Signed-off-by: default avatarKirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: default avatarDavid 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6cc931b9
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -4,4 +4,3 @@ header-y += registers.h


unifdef-y += termios.h
unifdef-y += termios.h
unifdef-y += ptrace.h
unifdef-y += ptrace.h
unifdef-y += page.h
+0 −3
Original line number Original line Diff line number Diff line
@@ -27,6 +27,3 @@ unifdef-y += termbits.h
unifdef-y += termios.h
unifdef-y += termios.h
unifdef-y += types.h
unifdef-y += types.h
unifdef-y += unistd.h
unifdef-y += unistd.h

# These probably shouldn't be exported
unifdef-y += page.h
+2 −0
Original line number Original line Diff line number Diff line
@@ -10,7 +10,9 @@
#ifndef _S390_KEXEC_H
#ifndef _S390_KEXEC_H
#define _S390_KEXEC_H
#define _S390_KEXEC_H


#ifdef __KERNEL__
#include <asm/page.h>
#include <asm/page.h>
#endif
#include <asm/processor.h>
#include <asm/processor.h>
/*
/*
 * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
 * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
+0 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,6 @@ header-y += usb/


header-y += affs_hardblocks.h
header-y += affs_hardblocks.h
header-y += aio_abi.h
header-y += aio_abi.h
header-y += a.out.h
header-y += arcfb.h
header-y += arcfb.h
header-y += atmapi.h
header-y += atmapi.h
header-y += atmbr2684.h
header-y += atmbr2684.h
+8 −0
Original line number Original line Diff line number Diff line
@@ -128,12 +128,20 @@ enum machine_type {
#endif
#endif


#ifdef linux
#ifdef linux
#ifdef __KERNEL__
#include <asm/page.h>
#include <asm/page.h>
#else
#include <unistd.h>
#endif
#if defined(__i386__) || defined(__mc68000__)
#if defined(__i386__) || defined(__mc68000__)
#define SEGMENT_SIZE	1024
#define SEGMENT_SIZE	1024
#else
#else
#ifndef SEGMENT_SIZE
#ifndef SEGMENT_SIZE
#ifdef __KERNEL__
#define SEGMENT_SIZE	PAGE_SIZE
#define SEGMENT_SIZE	PAGE_SIZE
#else
#define SEGMENT_SIZE   getpagesize()
#endif
#endif
#endif
#endif
#endif
#endif
#endif
Loading