Skip to content

Commit

Permalink
Don't include implementation details from asm-s390/ptrace.h and page.h
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Apr 27, 2006
1 parent b7b3c76 commit 274f594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/asm-s390/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#ifndef _S390_PAGE_H
#define _S390_PAGE_H

#include <asm/setup.h>
#include <asm/types.h>

/* PAGE_SHIFT determines the page size */
Expand All @@ -20,6 +19,7 @@
#define PAGE_DEFAULT_KEY (PAGE_DEFAULT_ACC << 4)

#ifdef __KERNEL__
#include <asm/setup.h>
#ifndef __ASSEMBLY__

#ifndef __s390x__
Expand Down Expand Up @@ -189,9 +189,9 @@ page_get_storage_key(unsigned long addr)
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#endif /* __KERNEL__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>

#endif /* __KERNEL__ */

#endif /* _S390_PAGE_H */
5 changes: 3 additions & 2 deletions include/asm-s390/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@
#ifndef __ASSEMBLY__
#include <linux/stddef.h>
#include <linux/types.h>
#include <asm/setup.h>
#include <asm/page.h>

typedef union
{
Expand Down Expand Up @@ -300,6 +298,9 @@ typedef struct
} s390_regs;

#ifdef __KERNEL__
#include <asm/setup.h>
#include <asm/page.h>

/*
* The pt_regs struct defines the way the registers are stored on
* the stack during a system call.
Expand Down

0 comments on commit 274f594

Please sign in to comment.