]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] uml: return hotplug errors to host
authorJeff Dike <jdike@addtoit.com>
Sat, 10 Feb 2007 09:43:53 +0000 (01:43 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:21 +0000 (10:51 -0800)
commitf28169d2000177e8b72ccc6d72887be779dceca8
tree0ef842014c67d8a136cc26c99113b69e2ede87ea
parentd79a580936396bbcd2f4fae2c6215f9cf81e3c0d
[PATCH] uml: return hotplug errors to host

I noticed that errors happening while hotplugging devices from the host were
never returned back to the mconsole client.  In some cases, success was
returned instead of even an information-free error.

This patch cleans that up by having the low-level configuration code pass back
an error string along with an error code.  At the top level, which knows
whether it is early boot time or responding to an mconsole request, the string
is printk'd or returned to the mconsole client.

There are also whitespace and trivial code cleanups in the surrounding code.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
arch/um/drivers/chan_kern.c
arch/um/drivers/line.c
arch/um/drivers/mconsole_kern.c
arch/um/drivers/net_kern.c
arch/um/drivers/ssl.c
arch/um/drivers/stdio_console.c
arch/um/drivers/ubd_kern.c
arch/um/include/chan_kern.h
arch/um/include/line.h
arch/um/include/mconsole_kern.h
arch/um/kernel/tt/gdb.c
arch/um/kernel/tt/gdb_kern.c