aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-06-12 09:14:51 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-06-25 04:14:38 -0400
commit2dd26659e3167526212b7b3a18a5c747058aff1e (patch)
treef39497fc35bf173f42d8859b92e9d40e6787bb9d
parenta5802353b1ee8e4c97e5c255bed7651b924098fa (diff)
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>
-rw-r--r--arch/s390/boot/als.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/s390/boot/als.c b/arch/s390/boot/als.c
index b6287a99a7b8..d592e0d90d9f 100644
--- a/arch/s390/boot/als.c
+++ b/arch/s390/boot/als.c
@@ -3,7 +3,6 @@
3 * Copyright IBM Corp. 2016 3 * Copyright IBM Corp. 2016
4 */ 4 */
5#include <linux/kernel.h> 5#include <linux/kernel.h>
6#include <linux/init.h>
7#include <asm/processor.h> 6#include <asm/processor.h>
8#include <asm/facility.h> 7#include <asm/facility.h>
9#include <asm/lowcore.h> 8#include <asm/lowcore.h>
@@ -17,9 +16,9 @@
17 * For temporary objects the stack (16k) should be used. 16 * For temporary objects the stack (16k) should be used.
18 */ 17 */
19 18
20static unsigned long als[] __initdata = { FACILITIES_ALS }; 19static unsigned long als[] = { FACILITIES_ALS };
21 20
22static void __init u16_to_hex(char *str, u16 val) 21static void u16_to_hex(char *str, u16 val)
23{ 22{
24 int i, num; 23 int i, num;
25 24
@@ -32,9 +31,9 @@ static void __init u16_to_hex(char *str, u16 val)
32 *str = '\0'; 31 *str = '\0';
33} 32}
34 33
35static void __init print_machine_type(void) 34static void print_machine_type(void)
36{ 35{
37 static char mach_str[80] __initdata = "Detected machine-type number: "; 36 static char mach_str[80] = "Detected machine-type number: ";
38 char type_str[5]; 37 char type_str[5];
39 struct cpuid id; 38 struct cpuid id;
40 39
@@ -45,7 +44,7 @@ static void __init print_machine_type(void)
45 sclp_early_printk(mach_str); 44 sclp_early_printk(mach_str);
46} 45}
47 46
48static void __init u16_to_decimal(char *str, u16 val) 47static void u16_to_decimal(char *str, u16 val)
49{ 48{
50 int div = 1; 49 int div = 1;
51 50
@@ -59,9 +58,9 @@ static void __init u16_to_decimal(char *str, u16 val)
59 *str = '\0'; 58 *str = '\0';
60} 59}
61 60
62static void __init print_missing_facilities(void) 61static void print_missing_facilities(void)
63{ 62{
64 static char als_str[80] __initdata = "Missing facilities: "; 63 static char als_str[80] = "Missing facilities: ";
65 unsigned long val; 64 unsigned long val;
66 char val_str[6]; 65 char val_str[6];
67 int i, j, first; 66 int i, j, first;
@@ -94,7 +93,7 @@ static void __init print_missing_facilities(void)
94 sclp_early_printk("See Principles of Operations for facility bits\n"); 93 sclp_early_printk("See Principles of Operations for facility bits\n");
95} 94}
96 95
97static void __init facility_mismatch(void) 96static void facility_mismatch(void)
98{ 97{
99 sclp_early_printk("The Linux kernel requires more recent processor hardware\n"); 98 sclp_early_printk("The Linux kernel requires more recent processor hardware\n");
100 print_machine_type(); 99 print_machine_type();
@@ -102,7 +101,7 @@ static void __init facility_mismatch(void)
102 disabled_wait(0x8badcccc); 101 disabled_wait(0x8badcccc);
103} 102}
104 103
105void __init verify_facilities(void) 104void verify_facilities(void)
106{ 105{
107 int i; 106 int i;
108 107