History

Add #includes needed to permit the removal of asm/system.h

asm/system.h is a cause of circular dependency problems because it contains commonly used primitive stuff like barrier definitions and uncommonly used stuff like switch_to() that might require MMU definitions. asm/system.h has been disintegrated by this point on all arches into the following common segments: (1) asm/barrier.h Moved memory barrier definitions here. (2) asm/cmpxchg.h Moved xchg() and cmpxchg() here. #included in asm/atomic.h. (3) asm/bug.h Moved die() and similar here. (4) asm/exec.h Moved arch_align_stack() here. (5) asm/elf.h Moved AT_VECTOR_SIZE_ARCH here. (6) asm/switch_to.h Moved switch_to() here.

David Howells committed 14 years ago

Commit 96f951e1 parent 49a7f0410 files · +11 −3Browse files

Unified · Split

10 files
  1. drivers/misc/sgi-gru/gru_instructions.h +1 −0
  2. drivers/staging/crystalhd/bc_dts_defs.h +2 −0
  3. fs/binfmt_elf.c +1 −0
  4. fs/binfmt_elf_fdpic.c +1 −0
  5. fs/exec.c +1 −0
  6. include/asm-generic/bitops/atomic.h +1 −1
  7. include/linux/llist.h +1 −2
  8. include/linux/mtd/map.h +1 −0
  9. include/linux/spinlock.h +1 −0
  10. kernel/sched/core.c +1 −0
drivers/misc/sgi-gru/gru_instructions.h+1−0
@@ -40,6 +40,7 @@ extern void gru_wait_abort_proc(void *cb); · 39 unmodified lines
4040 *((volatile unsigned long *)(p)) = v; /* force st.rel */ \
4141 } while (0)
4242 #elif defined(CONFIG_X86_64)
43+#include <asm/cacheflush.h>
4344 #define __flush_cache(p) clflush(p)
4445 #define gru_ordered_store_ulong(p, v) \
4546 do { \
drivers/staging/crystalhd/bc_dts_defs.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
2626 #ifndef _BC_DTS_DEFS_H_
2727 #define _BC_DTS_DEFS_H_
2828
29+#include <linux/types.h>
30+
2931 /* BIT Mask */
3032 #define BC_BIT(_x) (1 << (_x))
3133
fs/binfmt_elf.c+1−0
@@ -35,6 +35,7 @@ · 34 unmodified lines
3535 #include <asm/uaccess.h>
3636 #include <asm/param.h>
3737 #include <asm/page.h>
38+#include <asm/exec.h>
3839
3940 static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);
4041 static int load_elf_library(struct file *);
fs/binfmt_elf_fdpic.c+1−0
@@ -39,6 +39,7 @@ · 38 unmodified lines
3939 #include <asm/uaccess.h>
4040 #include <asm/param.h>
4141 #include <asm/pgalloc.h>
42+#include <asm/exec.h>
4243
4344 typedef char *elf_caddr_t;
4445
fs/exec.c+1−0
@@ -59,6 +59,7 @@ · 58 unmodified lines
5959 #include <asm/uaccess.h>
6060 #include <asm/mmu_context.h>
6161 #include <asm/tlb.h>
62+#include <asm/exec.h>
6263
6364 #include <trace/events/task.h>
6465 #include "internal.h"
include/asm-generic/bitops/atomic.h+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 #define _ASM_GENERIC_BITOPS_ATOMIC_H_
33
44 #include <asm/types.h>
5−#include <asm/system.h>
5+#include <linux/irqflags.h>
66
77 #ifdef CONFIG_SMP
88 #include <asm/spinlock.h>
include/linux/llist.h+1−2
@@ -56,8 +56,7 @@ · 55 unmodified lines
5656 */
5757
5858 #include <linux/kernel.h>
59−#include <asm/system.h>
60−#include <asm/processor.h>
59+#include <asm/cmpxchg.h>
6160
6261 struct llist_head {
6362 struct llist_node *first;
include/linux/mtd/map.h+1−0
@@ -31,6 +31,7 @@ · 30 unmodified lines
3131 #include <asm/unaligned.h>
3232 #include <asm/system.h>
3333 #include <asm/io.h>
34+#include <asm/barrier.h>
3435
3536 #ifdef CONFIG_MTD_MAP_BANK_WIDTH_1
3637 #define map_bankwidth(map) 1
include/linux/spinlock.h+1−0
@@ -55,6 +55,7 @@ · 54 unmodified lines
5555 #include <linux/kernel.h>
5656 #include <linux/stringify.h>
5757 #include <linux/bottom_half.h>
58+#include <asm/barrier.h>
5859
5960 #include <asm/system.h>
6061
kernel/sched/core.c+1−0
@@ -73,6 +73,7 @@ · 72 unmodified lines
7373 #include <linux/init_task.h>
7474 #include <linux/binfmts.h>
7575
76+#include <asm/switch_to.h>
7677 #include <asm/tlb.h>
7778 #include <asm/irq_regs.h>
7879 #include <asm/mutex.h>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t