[uml-devel] [Patch] UML: Clean up arch/um/drivers/ubd_kern.c

2008-04-12 Thread WANG Cong
Make some global functions and variables static. And remove some useless declarations for local functions, since we just need to move their definitions ahead. Compile testing passed. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- arch/um/drivers/ubd_kern.c

[uml-devel] [Patch] UML: Make several things static.

2008-04-12 Thread WANG Cong
Make several things static, because they no longer need to be global. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- arch/um/drivers/net_kern.c |6 +++--- arch/um/drivers/slip_kern.c |4 ++-- arch/um/drivers/stdio_console.c |4 ++-- 3 fil

[uml-devel] [Patch] UML: Fix another build error

2008-04-12 Thread WANG Cong
This patch fixes the following build error. CC arch/um/drivers/mconsole_kern.o /home/wangcong/projects/linux-2.6/arch/um/drivers/mconsole_kern.c:337: error: redefinition of ‘mconsole_register_dev’ /home/wangcong/projects/linux-2.6/arch/um/include/mconsole_kern.h:47: error: previous defin

[uml-devel] [Patch] UML: Make three functions static

2008-04-12 Thread WANG Cong
Make the following three functions static, since they don't need to be global. arch/um/drivers/mcast_kern.c::mcast_setup() arch/um/drivers/mconsole_user.c::mconsole_reply_v0() arch/um/drivers/port_user.c::port_pre_exec() Compile testing passed. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: W

[uml-devel] [Patch] UML: Remove a useless function

2008-04-12 Thread WANG Cong
arch/um/drivers/chan_kern.c::chan_out_fd() is not used by anyone. Remove it. Compile testing passed. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- arch/um/drivers/chan_kern.c | 13 - arch/um/include/chan_kern.h |1 - 2 files changed, 0 ins

[uml-devel] [Patch] UML: Make a function static

2008-04-12 Thread WANG Cong
arch/um/drivers/chan_kern.c::open_chan() can become static. Compile testing passed. Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- arch/um/drivers/chan_kern.c |2 +- arch/um/include/chan_kern.h |1 - 2 files changed, 1 insertions(+), 2 deletions(-)

[uml-devel] [Patch] uml: compile error fix

2008-04-12 Thread WANG Cong
This patch fixes this error: CC arch/um/kernel/smp.o In file included from /home/wangcong/projects/linux-2.6/arch/um/kernel/smp.c:9: include2/asm/tlb.h: In function ‘tlb_remove_page’: include2/asm/tlb.h:101: error: implicit declaration of function ‘page_cache_release’ make[2]: *** [arch/u

[uml-devel] [Patch] arch/um/os-Linux/sys-i386/task_size.c: improve a bit

2008-04-12 Thread WANG Cong
Improve this code a bit: check sigaction's return value and remove a useless fflush(). Cc: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> --- diff --git a/arch/um/os-Linux/sys-i386/task_size.c b/arch/um/os-Linux/sys-i386/task_size.c index 48d211b..2b5bba5 100644 ---