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