提交 c50ce358 编写于 作者: V Vasily Gorbik 提交者: Martin Schwidefsky

s390/ipl: avoid usage of __section(.data)

bss section is cleared before ipl.c code is called or global variables
are used nowadays. Remove stale comment and __section(.data) from
few global variables.

Also removes static/global variables initialization to 0.
Signed-off-by: NVasily Gorbik <gor@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 34ba2450
...@@ -119,13 +119,9 @@ static char *dump_type_str(enum dump_type type) ...@@ -119,13 +119,9 @@ static char *dump_type_str(enum dump_type type)
} }
} }
/* static u8 ipl_ssid;
* Must be in data section since the bss section static u16 ipl_devno;
* is not cleared when these are accessed. u32 ipl_flags;
*/
static u8 ipl_ssid __section(.data) = 0;
static u16 ipl_devno __section(.data) = 0;
u32 ipl_flags __section(.data) = 0;
enum ipl_method { enum ipl_method {
REIPL_METHOD_CCW_CIO, REIPL_METHOD_CCW_CIO,
...@@ -148,7 +144,7 @@ enum dump_method { ...@@ -148,7 +144,7 @@ enum dump_method {
DUMP_METHOD_FCP_DIAG, DUMP_METHOD_FCP_DIAG,
}; };
static int diag308_set_works = 0; static int diag308_set_works;
static struct ipl_parameter_block ipl_block; static struct ipl_parameter_block ipl_block;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册