Skip to contentSkip to conversation

uml: inline empty proc

PATCH New [email protected] 1 participant 1 message Apr 24, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 uml: inline empty proc

Cleanup: make an inline of this empty proc.

---

 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(-)
include/asm-um/processor-generic.h renamed from include/asm-um/processor-generic.h~uml-inline-empty +5 -1
diff -puN include/asm-um/processor-generic.h~uml-inline-empty include/asm-um/processor-generic.h
@@ -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);
 
arch/um/kernel/process_kern.c renamed from arch/um/kernel/process_kern.c~uml-inline-empty +0 -4
diff -puN arch/um/kernel/process_kern.c~uml-inline-empty arch/um/kernel/process_kern.c
@@ -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)

_

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel