Skip to content

Commit

Permalink
xtensa: Shuffle include statements to fix linker script
Browse files Browse the repository at this point in the history
The linker script was including assembly macros from the coprocessor
header file that is not otherwise used by the script.

Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Chris Zankel committed May 2, 2010
1 parent cf1c0aa commit 4573e39
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/xtensa/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define _XTENSA_ELF_H

#include <asm/ptrace.h>
#include <asm/coprocessor.h>

/* Xtensa processor ELF architecture-magic number */

Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#ifdef __KERNEL__

#include <linux/highmem.h>
#include <linux/slab.h>

/*
* Allocating and freeing a pmd is trivial: the 1-entry pmd is
Expand Down
1 change: 0 additions & 1 deletion arch/xtensa/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define _XTENSA_PROCESSOR_H

#include <variant/core.h>
#include <asm/coprocessor.h>
#include <platform/hardware.h>

#include <linux/compiler.h>
Expand Down
2 changes: 2 additions & 0 deletions arch/xtensa/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

#ifndef __ASSEMBLY__

#include <asm/coprocessor.h>

/*
* This struct defines the way the registers are stored on the
* kernel stack during a system call or other kernel entry.
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <asm/processor.h>
#include <asm/coprocessor.h>

#include <linux/types.h>
#include <linux/stddef.h>
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/linkage.h>
#include <asm/asm-offsets.h>
#include <asm/processor.h>
#include <asm/coprocessor.h>
#include <asm/thread_info.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
Expand Down

0 comments on commit 4573e39

Please sign in to comment.