From: Heiko Carstens 24ec839c431eb79bb8f6abc00c4e1eb3b8c4d517 causes this: WARNING: "get_current_tty" [drivers/s390/char/fs3270.ko] undefined! Cc: Martin Schwidefsky Acked-by: Peter Zijlstra Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton --- drivers/char/tty_io.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/char/tty_io.c~tty-export-get_current_tty drivers/char/tty_io.c --- a/drivers/char/tty_io.c~tty-export-get_current_tty +++ a/drivers/char/tty_io.c @@ -3821,6 +3821,7 @@ struct tty_struct *get_current_tty(void) barrier(); return tty; } +EXPORT_SYMBOL_GPL(get_current_tty); /* * Initialize the console device. This is called *early*, so _