1
linux/arch/um/kernel
Jeff Dike 8192ab42bf uml: header untangling
Untangle UML headers somewhat and add some includes where they were
needed explicitly, but gotten accidentally via some other header.

arch/um/include/um_uaccess.h loses asm/fixmap.h because it uses no
fixmap stuff and gains elf.h, because it needs FIXADDR_USER_*, and
archsetjmp.h, because it needs jmp_buf.

pmd_alloc_one is uninlined because it needs mm_struct, and that's
inconvenient to provide in asm-um/pgtable-3level.h.

elf_core_copy_fpregs is also uninlined from elf-i386.h and
elf-x86_64.h, which duplicated the code anyway, to
arch/um/kernel/process.c, so that the reference to current_thread
doesn't pull sched.h or anything related into asm/elf.h.

arch/um/sys-i386/ldt.c, arch/um/kernel/tlb.c and
arch/um/kernel/skas/uaccess.c got sched.h because they dereference
task_structs.  Its includes of linux and asm headers got turned from
"" to <>.

arch/um/sys-i386/bug.c gets asm/errno.h because it needs errno
constants.

asm/elf-i386 gets asm/user.h because it needs user_regs_struct.

asm/fixmap.h gets page.h because it needs PAGE_SIZE and PAGE_MASK and
system.h for BUG_ON.

asm/pgtable doesn't need sched.h.

asm/processor-generic.h defined mm_segment_t, but didn't use it.  So,
that definition is moved to uaccess.h, which defines a bunch of
mm_segment_t-related stuff.  thread_info.h uses mm_segment_t, and
includes uaccess.h, which causes a recursion.  So, the definition is
placed above the include of thread_info. in uaccess.h.  thread_info.h
also gets page.h because it needs PAGE_SIZE.

ObCheckpatchViolationJustification - I'm not adding a typedef; I'm
moving mm_segment_t from one place to another.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:28 -08:00
..
skas uml: header untangling 2008-02-05 09:44:28 -08:00
asm-offsets.c
config.c.in
dyn.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
exec.c uml: fix stub address calculations 2007-10-16 09:43:09 -07:00
exitcode.c uml: get declaration of simple_strtoul 2007-06-08 17:23:33 -07:00
gmon_syms.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
gprof_syms.c
init_task.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
initrd.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
irq.c uml: fix spurious IRQ testing 2007-11-14 18:45:43 -08:00
ksyms.c uml: move um_virt_to_phys 2008-02-05 09:44:28 -08:00
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
mem.c uml: header untangling 2008-02-05 09:44:28 -08:00
physmem.c uml: userspace files should call libc directly 2007-10-16 09:43:06 -07:00
process.c uml: header untangling 2008-02-05 09:44:28 -08:00
ptrace.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
reboot.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
sigio.c uml: rename os_{read_write}_file_k back to os_{read_write}_file 2007-05-07 12:13:03 -07:00
signal.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
smp.c uml: tidy kern_util.h 2008-02-05 09:44:26 -08:00
syscall.c uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
sysrq.c uml: remove user_util.h 2007-05-07 12:13:01 -07:00
time.c uml: use *SEC_PER_*SEC constants 2007-10-16 09:43:08 -07:00
tlb.c uml: header untangling 2008-02-05 09:44:28 -08:00
trap.c uml: tidy pgtable.h 2008-02-05 09:44:26 -08:00
uaccess.c uml: get rid of do_longjmp 2007-10-16 09:43:05 -07:00
um_arch.c uml: convert functions to void 2008-02-05 09:44:26 -08:00
umid.c [PATCH] uml: umid tidying 2007-02-11 10:51:24 -08:00
uml.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S [PATCH] uml: tidy biarch gcc support 2006-07-14 21:53:52 -07:00