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
40 *((volatile unsigned long *)(p)) = v; /* force st.rel */ \40 *((volatile unsigned long *)(p)) = v; /* force st.rel */ \
41 } while (0)41 } while (0)
42#elif defined(CONFIG_X86_64)42#elif defined(CONFIG_X86_64)
43#include <asm/cacheflush.h>
43#define __flush_cache(p) clflush(p)44#define __flush_cache(p) clflush(p)
44#define gru_ordered_store_ulong(p, v) \45#define gru_ordered_store_ulong(p, v) \
45 do { \46 do { \
drivers/staging/crystalhd/bc_dts_defs.h+2−0
@@ -26,6 +26,8 @@ · 25 unmodified lines
26#ifndef _BC_DTS_DEFS_H_26#ifndef _BC_DTS_DEFS_H_
27#define _BC_DTS_DEFS_H_27#define _BC_DTS_DEFS_H_
28 28
29#include <linux/types.h>
30
29/* BIT Mask */31/* BIT Mask */
30#define BC_BIT(_x) (1 << (_x))32#define BC_BIT(_x) (1 << (_x))
31 33
fs/binfmt_elf.c+1−0
@@ -35,6 +35,7 @@ · 34 unmodified lines
35#include <asm/uaccess.h>35#include <asm/uaccess.h>
36#include <asm/param.h>36#include <asm/param.h>
37#include <asm/page.h>37#include <asm/page.h>
38#include <asm/exec.h>
38 39
39static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);40static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);
40static int load_elf_library(struct file *);41static int load_elf_library(struct file *);
fs/binfmt_elf_fdpic.c+1−0
@@ -39,6 +39,7 @@ · 38 unmodified lines
39#include <asm/uaccess.h>39#include <asm/uaccess.h>
40#include <asm/param.h>40#include <asm/param.h>
41#include <asm/pgalloc.h>41#include <asm/pgalloc.h>
42#include <asm/exec.h>
42 43
43typedef char *elf_caddr_t;44typedef char *elf_caddr_t;
44 45
fs/exec.c+1−0
@@ -59,6 +59,7 @@ · 58 unmodified lines
59#include <asm/uaccess.h>59#include <asm/uaccess.h>
60#include <asm/mmu_context.h>60#include <asm/mmu_context.h>
61#include <asm/tlb.h>61#include <asm/tlb.h>
62#include <asm/exec.h>
62 63
63#include <trace/events/task.h>64#include <trace/events/task.h>
64#include "internal.h"65#include "internal.h"
include/asm-generic/bitops/atomic.h+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
2#define _ASM_GENERIC_BITOPS_ATOMIC_H_2#define _ASM_GENERIC_BITOPS_ATOMIC_H_
3 3
4#include <asm/types.h>4#include <asm/types.h>
5#include <asm/system.h>5#include <linux/irqflags.h>
6 6
7#ifdef CONFIG_SMP7#ifdef CONFIG_SMP
8#include <asm/spinlock.h>8#include <asm/spinlock.h>
include/linux/llist.h+1−2
@@ -56,8 +56,7 @@ · 55 unmodified lines
56 */56 */
57 57
58#include <linux/kernel.h>58#include <linux/kernel.h>
59#include <asm/system.h>59#include <asm/cmpxchg.h>
60#include <asm/processor.h>
61 60
62struct llist_head {61struct llist_head {
63 struct llist_node *first;62 struct llist_node *first;
include/linux/mtd/map.h+1−0
@@ -31,6 +31,7 @@ · 30 unmodified lines
31#include <asm/unaligned.h>31#include <asm/unaligned.h>
32#include <asm/system.h>32#include <asm/system.h>
33#include <asm/io.h>33#include <asm/io.h>
34#include <asm/barrier.h>
34 35
35#ifdef CONFIG_MTD_MAP_BANK_WIDTH_136#ifdef CONFIG_MTD_MAP_BANK_WIDTH_1
36#define map_bankwidth(map) 137#define map_bankwidth(map) 1
include/linux/spinlock.h+1−0
@@ -55,6 +55,7 @@ · 54 unmodified lines
55#include <linux/kernel.h>55#include <linux/kernel.h>
56#include <linux/stringify.h>56#include <linux/stringify.h>
57#include <linux/bottom_half.h>57#include <linux/bottom_half.h>
58#include <asm/barrier.h>
58 59
59#include <asm/system.h>60#include <asm/system.h>
60 61
kernel/sched/core.c+1−0
@@ -73,6 +73,7 @@ · 72 unmodified lines
73#include <linux/init_task.h>73#include <linux/init_task.h>
74#include <linux/binfmts.h>74#include <linux/binfmts.h>
75 75
76#include <asm/switch_to.h>
76#include <asm/tlb.h>77#include <asm/tlb.h>
77#include <asm/irq_regs.h>78#include <asm/irq_regs.h>
78#include <asm/mutex.h>79#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