From: Rusty Russell There's a really nice console helper (esp. for virtual console drivers) in drivers/char/hvc_console.c. It has only ever been used for PowerPC, though, so it uses NO_IRQ which is only defined there. Let's fix that so it's more widely useful. By, say, lguest. Signed-off-by: Rusty Russell Cc: Andi Kleen Signed-off-by: Andrew Morton --- drivers/char/hvc_console.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN drivers/char/hvc_console.c~cleanup-make-hvc_consolec-compile-on-non-powerpc drivers/char/hvc_console.c --- a/drivers/char/hvc_console.c~cleanup-make-hvc_consolec-compile-on-non-powerpc +++ a/drivers/char/hvc_console.c @@ -49,6 +49,10 @@ #define TIMEOUT (10) +#ifndef NO_IRQ +#define NO_IRQ 0 +#endif + /* * Wait this long per iteration while trying to push buffered data to the * hypervisor before allowing the tty to complete a close operation. _