diff options
-rw-r--r-- | arch/s390/kernel/head.S | 1 | ||||
-rw-r--r-- | arch/s390/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | arch/s390/mm/vmem.c | 6 | ||||
-rw-r--r-- | drivers/s390/char/raw3270.c | 6 | ||||
-rw-r--r-- | drivers/s390/char/sclp_vt220.c | 3 |
5 files changed, 8 insertions, 9 deletions
diff --git a/arch/s390/kernel/head.S b/arch/s390/kernel/head.S index 8f8c802f1bcf..83477c7dc743 100644 --- a/arch/s390/kernel/head.S +++ b/arch/s390/kernel/head.S | |||
@@ -35,6 +35,7 @@ | |||
35 | #define ARCH_OFFSET 0 | 35 | #define ARCH_OFFSET 0 |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | .section ".text.head","ax" | ||
38 | #ifndef CONFIG_IPL | 39 | #ifndef CONFIG_IPL |
39 | .org 0 | 40 | .org 0 |
40 | .long 0x00080000,0x80000000+startup # Just a restart PSW | 41 | .long 0x00080000,0x80000000+startup # Just a restart PSW |
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 6ab7d4ee13a4..b4622a3889b0 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S | |||
@@ -21,6 +21,7 @@ SECTIONS | |||
21 | . = 0x00000000; | 21 | . = 0x00000000; |
22 | _text = .; /* Text and read-only data */ | 22 | _text = .; /* Text and read-only data */ |
23 | .text : { | 23 | .text : { |
24 | *(.text.head) | ||
24 | TEXT_TEXT | 25 | TEXT_TEXT |
25 | SCHED_TEXT | 26 | SCHED_TEXT |
26 | LOCK_TEXT | 27 | LOCK_TEXT |
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index 92a565190028..fd594d5fe142 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c | |||
@@ -29,8 +29,8 @@ struct memory_segment { | |||
29 | 29 | ||
30 | static LIST_HEAD(mem_segs); | 30 | static LIST_HEAD(mem_segs); |
31 | 31 | ||
32 | void memmap_init(unsigned long size, int nid, unsigned long zone, | 32 | void __meminit memmap_init(unsigned long size, int nid, unsigned long zone, |
33 | unsigned long start_pfn) | 33 | unsigned long start_pfn) |
34 | { | 34 | { |
35 | struct page *start, *end; | 35 | struct page *start, *end; |
36 | struct page *map_start, *map_end; | 36 | struct page *map_start, *map_end; |
@@ -66,7 +66,7 @@ void memmap_init(unsigned long size, int nid, unsigned long zone, | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | static inline void *vmem_alloc_pages(unsigned int order) | 69 | static void __init_refok *vmem_alloc_pages(unsigned int order) |
70 | { | 70 | { |
71 | if (slab_is_available()) | 71 | if (slab_is_available()) |
72 | return (void *)__get_free_pages(GFP_KERNEL, order); | 72 | return (void *)__get_free_pages(GFP_KERNEL, order); |
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 743944ad61ec..4f2f81b16cfa 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -147,8 +147,7 @@ raw3270_request_alloc(size_t size) | |||
147 | * Allocate a new 3270 ccw request from bootmem. Only works very | 147 | * Allocate a new 3270 ccw request from bootmem. Only works very |
148 | * early in the boot process. Only con3270.c should be using this. | 148 | * early in the boot process. Only con3270.c should be using this. |
149 | */ | 149 | */ |
150 | struct raw3270_request * | 150 | struct raw3270_request __init *raw3270_request_alloc_bootmem(size_t size) |
151 | raw3270_request_alloc_bootmem(size_t size) | ||
152 | { | 151 | { |
153 | struct raw3270_request *rq; | 152 | struct raw3270_request *rq; |
154 | 153 | ||
@@ -848,8 +847,7 @@ raw3270_setup_device(struct ccw_device *cdev, struct raw3270 *rp, char *ascebc) | |||
848 | /* | 847 | /* |
849 | * Setup 3270 device configured as console. | 848 | * Setup 3270 device configured as console. |
850 | */ | 849 | */ |
851 | struct raw3270 * | 850 | struct raw3270 __init *raw3270_setup_console(struct ccw_device *cdev) |
852 | raw3270_setup_console(struct ccw_device *cdev) | ||
853 | { | 851 | { |
854 | struct raw3270 *rp; | 852 | struct raw3270 *rp; |
855 | char *ascebc; | 853 | char *ascebc; |
diff --git a/drivers/s390/char/sclp_vt220.c b/drivers/s390/char/sclp_vt220.c index 726334757bbf..36fed6630f2e 100644 --- a/drivers/s390/char/sclp_vt220.c +++ b/drivers/s390/char/sclp_vt220.c | |||
@@ -621,8 +621,7 @@ sclp_vt220_flush_buffer(struct tty_struct *tty) | |||
621 | /* | 621 | /* |
622 | * Initialize all relevant components and register driver with system. | 622 | * Initialize all relevant components and register driver with system. |
623 | */ | 623 | */ |
624 | static int | 624 | static int __init_refok __sclp_vt220_init(int early) |
625 | __sclp_vt220_init(int early) | ||
626 | { | 625 | { |
627 | void *page; | 626 | void *page; |
628 | int i; | 627 | int i; |