[S390] Fix couple of section mismatches.

Fix couple of section mismatches. And since we touch the code
anyway change the IPL code to use C99 initializers.

Cc: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Heiko Carstens and committed by Martin Schwidefsky 2bc89b5e 37c5f719

+27 -24
+2 -5
arch/s390/kernel/entry.S
··· 11 12 #include <linux/sys.h> 13 #include <linux/linkage.h> 14 #include <asm/cache.h> 15 #include <asm/lowcore.h> 16 #include <asm/errno.h> ··· 831 * Restart interruption handler, kick starter for additional CPUs 832 */ 833 #ifdef CONFIG_SMP 834 - #ifndef CONFIG_HOTPLUG_CPU 835 - .section .init.text,"ax" 836 - #endif 837 .globl restart_int_handler 838 restart_int_handler: 839 l %r15,__LC_SAVE_AREA+60 # load ksp ··· 844 br %r14 # branch to start_secondary 845 restart_addr: 846 .long start_secondary 847 - #ifndef CONFIG_HOTPLUG_CPU 848 .previous 849 - #endif 850 #else 851 /* 852 * If we do not run with SMP enabled, let the new CPU crash ...
··· 11 12 #include <linux/sys.h> 13 #include <linux/linkage.h> 14 + #include <linux/init.h> 15 #include <asm/cache.h> 16 #include <asm/lowcore.h> 17 #include <asm/errno.h> ··· 830 * Restart interruption handler, kick starter for additional CPUs 831 */ 832 #ifdef CONFIG_SMP 833 + __CPUINIT 834 .globl restart_int_handler 835 restart_int_handler: 836 l %r15,__LC_SAVE_AREA+60 # load ksp ··· 845 br %r14 # branch to start_secondary 846 restart_addr: 847 .long start_secondary 848 .previous 849 #else 850 /* 851 * If we do not run with SMP enabled, let the new CPU crash ...
+2 -5
arch/s390/kernel/entry64.S
··· 11 12 #include <linux/sys.h> 13 #include <linux/linkage.h> 14 #include <asm/cache.h> 15 #include <asm/lowcore.h> 16 #include <asm/errno.h> ··· 802 * Restart interruption handler, kick starter for additional CPUs 803 */ 804 #ifdef CONFIG_SMP 805 - #ifndef CONFIG_HOTPLUG_CPU 806 - .section .init.text,"ax" 807 - #endif 808 .globl restart_int_handler 809 restart_int_handler: 810 lg %r15,__LC_SAVE_AREA+120 # load ksp ··· 813 lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone 814 stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on 815 jg start_secondary 816 - #ifndef CONFIG_HOTPLUG_CPU 817 .previous 818 - #endif 819 #else 820 /* 821 * If we do not run with SMP enabled, let the new CPU crash ...
··· 11 12 #include <linux/sys.h> 13 #include <linux/linkage.h> 14 + #include <linux/init.h> 15 #include <asm/cache.h> 16 #include <asm/lowcore.h> 17 #include <asm/errno.h> ··· 801 * Restart interruption handler, kick starter for additional CPUs 802 */ 803 #ifdef CONFIG_SMP 804 + __CPUINIT 805 .globl restart_int_handler 806 restart_int_handler: 807 lg %r15,__LC_SAVE_AREA+120 # load ksp ··· 814 lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone 815 stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on 816 jg start_secondary 817 .previous 818 #else 819 /* 820 * If we do not run with SMP enabled, let the new CPU crash ...
+18 -9
arch/s390/kernel/ipl.c
··· 439 reipl_ccw_dev(&ipl_info.data.ccw.dev_id); 440 } 441 442 - static int ipl_init(void) 443 { 444 int rc; 445 ··· 471 return 0; 472 } 473 474 - static struct shutdown_action ipl_action = {SHUTDOWN_ACTION_IPL_STR, ipl_run, 475 - ipl_init}; 476 477 /* 478 * reipl shutdown action: Reboot Linux on shutdown. ··· 795 return 0; 796 } 797 798 - static int reipl_init(void) 799 { 800 int rc; 801 ··· 822 return 0; 823 } 824 825 - static struct shutdown_action reipl_action = {SHUTDOWN_ACTION_REIPL_STR, 826 - reipl_run, reipl_init}; 827 828 /* 829 * dump shutdown action: Dump Linux on shutdown. ··· 1004 return 0; 1005 } 1006 1007 - static int dump_init(void) 1008 { 1009 int rc; 1010 ··· 1026 return 0; 1027 } 1028 1029 - static struct shutdown_action dump_action = {SHUTDOWN_ACTION_DUMP_STR, 1030 - dump_run, dump_init}; 1031 1032 /* 1033 * vmcmd shutdown action: Trigger vm command on shutdown.
··· 439 reipl_ccw_dev(&ipl_info.data.ccw.dev_id); 440 } 441 442 + static int __init ipl_init(void) 443 { 444 int rc; 445 ··· 471 return 0; 472 } 473 474 + static struct shutdown_action __refdata ipl_action = { 475 + .name = SHUTDOWN_ACTION_IPL_STR, 476 + .fn = ipl_run, 477 + .init = ipl_init, 478 + }; 479 480 /* 481 * reipl shutdown action: Reboot Linux on shutdown. ··· 792 return 0; 793 } 794 795 + static int __init reipl_init(void) 796 { 797 int rc; 798 ··· 819 return 0; 820 } 821 822 + static struct shutdown_action __refdata reipl_action = { 823 + .name = SHUTDOWN_ACTION_REIPL_STR, 824 + .fn = reipl_run, 825 + .init = reipl_init, 826 + }; 827 828 /* 829 * dump shutdown action: Dump Linux on shutdown. ··· 998 return 0; 999 } 1000 1001 + static int __init dump_init(void) 1002 { 1003 int rc; 1004 ··· 1020 return 0; 1021 } 1022 1023 + static struct shutdown_action __refdata dump_action = { 1024 + .name = SHUTDOWN_ACTION_DUMP_STR, 1025 + .fn = dump_run, 1026 + .init = dump_init, 1027 + }; 1028 1029 /* 1030 * vmcmd shutdown action: Trigger vm command on shutdown.
+1 -1
arch/s390/kernel/setup.c
··· 77 unsigned long elf_hwcap = 0; 78 char elf_platform[ELF_PLATFORM_SIZE]; 79 80 - struct mem_chunk __initdata memory_chunk[MEMORY_CHUNKS]; 81 volatile int __cpu_logical_map[NR_CPUS]; /* logical cpu to cpu address */ 82 static unsigned long __initdata memory_end; 83
··· 77 unsigned long elf_hwcap = 0; 78 char elf_platform[ELF_PLATFORM_SIZE]; 79 80 + struct mem_chunk __meminitdata memory_chunk[MEMORY_CHUNKS]; 81 volatile int __cpu_logical_map[NR_CPUS]; /* logical cpu to cpu address */ 82 static unsigned long __initdata memory_end; 83
+3 -3
arch/s390/kernel/smp.c
··· 1007 .notifier_call = smp_cpu_notify, 1008 }; 1009 1010 - static int smp_add_present_cpu(int cpu) 1011 { 1012 struct cpu *c = &per_cpu(cpu_devices, cpu); 1013 struct sys_device *s = &c->sysdev; ··· 1035 } 1036 1037 #ifdef CONFIG_HOTPLUG_CPU 1038 - static ssize_t rescan_store(struct sys_device *dev, const char *buf, 1039 - size_t count) 1040 { 1041 cpumask_t newcpus; 1042 int cpu;
··· 1007 .notifier_call = smp_cpu_notify, 1008 }; 1009 1010 + static int __devinit smp_add_present_cpu(int cpu) 1011 { 1012 struct cpu *c = &per_cpu(cpu_devices, cpu); 1013 struct sys_device *s = &c->sysdev; ··· 1035 } 1036 1037 #ifdef CONFIG_HOTPLUG_CPU 1038 + static ssize_t __ref rescan_store(struct sys_device *dev, 1039 + const char *buf, size_t count) 1040 { 1041 cpumask_t newcpus; 1042 int cpu;
+1 -1
arch/s390/mm/vmem.c
··· 62 } 63 } 64 65 - static void __init_refok *vmem_alloc_pages(unsigned int order) 66 { 67 if (slab_is_available()) 68 return (void *)__get_free_pages(GFP_KERNEL, order);
··· 62 } 63 } 64 65 + static void __ref *vmem_alloc_pages(unsigned int order) 66 { 67 if (slab_is_available()) 68 return (void *)__get_free_pages(GFP_KERNEL, order);