aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/sclp.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-06-30 10:24:18 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-07-31 05:27:58 -0400
commitcf9fdfea5f01bfebeeb28b4b27dc5151c7ea29d3 (patch)
treea2283ce8ed2d11fbea03d4fe0bda4f1e59a06a34 /arch/s390/kernel/sclp.c
parents390/zcrypt: Fix zcrypt suspend/resume behavior (diff)
downloadlinux-dev-cf9fdfea5f01bfebeeb28b4b27dc5151c7ea29d3.tar.xz
linux-dev-cf9fdfea5f01bfebeeb28b4b27dc5151c7ea29d3.zip
s390/sclp: move uninitialized data to data section
The early sclp code may be called before the bss section is cleared. Therefore move all variables to the data section. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/sclp.c')
-rw-r--r--arch/s390/kernel/sclp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/kernel/sclp.c b/arch/s390/kernel/sclp.c
index d88db40bdf15..f08af675f36f 100644
--- a/arch/s390/kernel/sclp.c
+++ b/arch/s390/kernel/sclp.c
@@ -12,8 +12,9 @@
#define EVTYP_VT220MSG_MASK 0x00000040
#define EVTYP_MSG_MASK 0x40000000
-static char _sclp_work_area[4096] __aligned(PAGE_SIZE);
-static bool have_vt220, have_linemode;
+static char _sclp_work_area[4096] __aligned(PAGE_SIZE) __section(data);
+static bool have_vt220 __section(data);
+static bool have_linemode __section(data);
static void _sclp_wait_int(void)
{