mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
s390/als: avoid .init.* sections usage
Since als.c is the part of the decompressor only, there is no point in using init sections for code and data. That's just creating extra sections in the decompressor image. Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
a5802353b1
commit
2dd26659e3
1 changed files with 9 additions and 10 deletions
|
@ -3,7 +3,6 @@
|
|||
* Copyright IBM Corp. 2016
|
||||
*/
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/facility.h>
|
||||
#include <asm/lowcore.h>
|
||||
|
@ -17,9 +16,9 @@
|
|||
* For temporary objects the stack (16k) should be used.
|
||||
*/
|
||||
|
||||
static unsigned long als[] __initdata = { FACILITIES_ALS };
|
||||
static unsigned long als[] = { FACILITIES_ALS };
|
||||
|
||||
static void __init u16_to_hex(char *str, u16 val)
|
||||
static void u16_to_hex(char *str, u16 val)
|
||||
{
|
||||
int i, num;
|
||||
|
||||
|
@ -32,9 +31,9 @@ static void __init u16_to_hex(char *str, u16 val)
|
|||
*str = '\0';
|
||||
}
|
||||
|
||||
static void __init print_machine_type(void)
|
||||
static void print_machine_type(void)
|
||||
{
|
||||
static char mach_str[80] __initdata = "Detected machine-type number: ";
|
||||
static char mach_str[80] = "Detected machine-type number: ";
|
||||
char type_str[5];
|
||||
struct cpuid id;
|
||||
|
||||
|
@ -45,7 +44,7 @@ static void __init print_machine_type(void)
|
|||
sclp_early_printk(mach_str);
|
||||
}
|
||||
|
||||
static void __init u16_to_decimal(char *str, u16 val)
|
||||
static void u16_to_decimal(char *str, u16 val)
|
||||
{
|
||||
int div = 1;
|
||||
|
||||
|
@ -59,9 +58,9 @@ static void __init u16_to_decimal(char *str, u16 val)
|
|||
*str = '\0';
|
||||
}
|
||||
|
||||
static void __init print_missing_facilities(void)
|
||||
static void print_missing_facilities(void)
|
||||
{
|
||||
static char als_str[80] __initdata = "Missing facilities: ";
|
||||
static char als_str[80] = "Missing facilities: ";
|
||||
unsigned long val;
|
||||
char val_str[6];
|
||||
int i, j, first;
|
||||
|
@ -94,7 +93,7 @@ static void __init print_missing_facilities(void)
|
|||
sclp_early_printk("See Principles of Operations for facility bits\n");
|
||||
}
|
||||
|
||||
static void __init facility_mismatch(void)
|
||||
static void facility_mismatch(void)
|
||||
{
|
||||
sclp_early_printk("The Linux kernel requires more recent processor hardware\n");
|
||||
print_machine_type();
|
||||
|
@ -102,7 +101,7 @@ static void __init facility_mismatch(void)
|
|||
disabled_wait(0x8badcccc);
|
||||
}
|
||||
|
||||
void __init verify_facilities(void)
|
||||
void verify_facilities(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue