Cleanup: make an inline of this empty proc.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
---
linux-2.6.12-paolo/arch/um/kernel/process_kern.c | 4 ----
linux-2.6.12-paolo/include/asm-um/processor-generic.h | 6 +++++-
2 files changed, 5 insertions(+), 5 deletions(-)
diff -puN include/asm-um/processor-generic.h~uml-inline-empty include/asm-um/processor-generic.h
--- linux-2.6.12/include/asm-um/processor-generic.h~uml-inline-empty 2005-04-24 19:32:18.000000000 +0200
+++ linux-2.6.12-paolo/include/asm-um/processor-generic.h 2005-04-24 19:32:18.000000000 +0200
@@ -89,7 +89,11 @@ extern struct task_struct *alloc_task_st
extern void release_thread(struct task_struct *);
extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
extern void dump_thread(struct pt_regs *regs, struct user *u);
-extern void prepare_to_copy(struct task_struct *tsk);
+
+static inline void prepare_to_copy(struct task_struct *tsk)
+{
+}
+
extern unsigned long thread_saved_pc(struct task_struct *t);
diff -puN arch/um/kernel/process_kern.c~uml-inline-empty arch/um/kernel/process_kern.c
--- linux-2.6.12/arch/um/kernel/process_kern.c~uml-inline-empty 2005-04-24 19:32:18.000000000 +0200
+++ linux-2.6.12-paolo/arch/um/kernel/process_kern.c 2005-04-24 19:32:18.000000000 +0200
@@ -161,10 +161,6 @@ void *get_current(void)
return(current);
}
-void prepare_to_copy(struct task_struct *tsk)
-{
-}
-
int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
unsigned long stack_top, struct task_struct * p,
struct pt_regs *regs)
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]