Fixes some random warnings. To avoid "defined but not used" for
not_configged_ops, make it be defined only if at least one channel is not
defined.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
well, since UML's gdb currently requires an xterm.
It is safe to say 'Y' here.
+config NOCONFIG_CHAN
+ bool
+ default !(XTERM_CHAN && TTY_CHAN && PTY_CHAN && PORT_CHAN && FD_CHAN && NULL_CHAN)
+
config CON_ZERO_CHAN
string "Default main console channel initialization"
default "fd:0,fd:1"
#include "line.h"
#include "os.h"
+#ifdef CONFIG_NOCONFIG_CHAN
static void *not_configged_init(char *str, int device, struct chan_opts *opts)
{
printk(KERN_ERR "Using a channel type which is configured out of "
.free = not_configged_free,
.winch = 0,
};
+#endif /* CONFIG_NOCONFIG_CHAN */
void generic_close(int fd, void *unused)
{