aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorHeiko Carstens2023-01-10 13:49:23 +0100
committerHeiko Carstens2023-01-10 14:38:58 +0100
commit9cab4f7d98eee90b762ffbc87055c9499d51a635 (patch)
tree533fa483410018d07d9dd1c4f7a4d6dd222e9835 /drivers/s390
parenta43e3115fbea2f9ba040a183aab300e0abf9cb67 (diff)
s390/con3270: move condev definition
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/con3270.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c
index 9402690de598..d9983550062d 100644
--- a/drivers/s390/char/con3270.c
+++ b/drivers/s390/char/con3270.c
@@ -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)
{