s390/con3270: move condev definition
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 10 Jan 2023 12:49:23 +0000 (13:49 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 10 Jan 2023 13:38:58 +0000 (14:38 +0100)
Fix this for allmodconfig:

drivers/s390/char/con3270.c:43:24: error: 'condev' defined but not used [-Werror=unused-variable]
 static struct tty3270 *condev;
                        ^~~~~~

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: c17fe081ac1f ("s390/3270: unify con3270 + tty3270")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/con3270.c

index 9402690de59857a6f09fb1a4ee29eb68b9f85869..d9983550062d7216615d050fbf39d015660818d7 100644 (file)
@@ -40,7 +40,6 @@
 
 static struct tty_driver *tty3270_driver;
 static int tty3270_max_index;
-static struct tty3270 *condev;
 static struct raw3270_fn tty3270_fn;
 
 #define TTY3270_HIGHLIGHT_BLINK                1
@@ -2045,6 +2044,9 @@ static void __exit tty3270_exit(void)
 }
 
 #if IS_ENABLED(CONFIG_TN3270_CONSOLE)
+
+static struct tty3270 *condev;
+
 static void
 con3270_write(struct console *co, const char *str, unsigned int count)
 {