[PATCH] uml: hot-unplug code cleanup
Clean up the hot-unplugging code. There is now an id procedure which is called to figure out what device we're talking to. The error messages from that are now done from mconsole_remove instead of the driver. remove is now called with the device number, after it has been checked, so doesn't need to do sanity checking on it. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
fc47a0d18a
commit
29d56cfe3c
@@ -4,8 +4,8 @@
|
||||
* Licensed under the GPL
|
||||
*/
|
||||
|
||||
#ifndef __DEBUG_H
|
||||
#define __DEBUG_H
|
||||
#ifndef __UML_TT_DEBUG_H
|
||||
#define __UML_TT_DEBUG_H
|
||||
|
||||
extern int debugger_proxy(int status, pid_t pid);
|
||||
extern void child_proxy(pid_t pid, int status);
|
||||
@@ -13,17 +13,6 @@ extern void init_proxy (pid_t pid, int waiting, int status);
|
||||
extern int start_debugger(char *prog, int startup, int stop, int *debugger_fd);
|
||||
extern void fake_child_exit(void);
|
||||
extern int gdb_config(char *str);
|
||||
extern int gdb_remove(char *unused);
|
||||
extern int gdb_remove(int unused);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Overrides for Emacs so that we follow Linus's tabbing style.
|
||||
* Emacs will notice this stuff at the end of the file and automatically
|
||||
* adjust the settings for this buffer only. This must remain at the end
|
||||
* of the file.
|
||||
* ---------------------------------------------------------------------------
|
||||
* Local variables:
|
||||
* c-file-style: "linux"
|
||||
* End:
|
||||
*/
|
||||
|
Reference in New Issue
Block a user