aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2007-06-19 07:10:03 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-06-19 07:10:19 -0400
commit84b36a8e0c863aeea29b62f8411157192481dd2e (patch)
tree5b5d6e4a9eb766f9f58746f47a8ad870df9cd747 /arch
parentce4448238aee0144a2458874944df5a5a01a6ac6 (diff)
[S390] Fix yet another two section mismatches.
WARNING: arch/s390/kernel/built-in.o(.text+0xb92a): Section mismatch: reference to .init.text:start_secondary (between 'restart_addr' and 'stack_overflow') WARNING: arch/s390/appldata/built-in.o(.data+0xdc): Section mismatch: reference to .init.text: (between 'appldata_nb' and 'appldata_timer_lock') Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/appldata/appldata_base.c5
-rw-r--r--arch/s390/kernel/entry.S8
-rw-r--r--arch/s390/kernel/entry64.S8
3 files changed, 16 insertions, 5 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c
index 81a2b92ab0c2..6ffbab77ae4d 100644
--- a/arch/s390/appldata/appldata_base.c
+++ b/arch/s390/appldata/appldata_base.c
@@ -535,8 +535,7 @@ void appldata_unregister_ops(struct appldata_ops *ops)
535 535
536/******************************* init / exit *********************************/ 536/******************************* init / exit *********************************/
537 537
538static void 538static void __cpuinit appldata_online_cpu(int cpu)
539appldata_online_cpu(int cpu)
540{ 539{
541 init_virt_timer(&per_cpu(appldata_timer, cpu)); 540 init_virt_timer(&per_cpu(appldata_timer, cpu));
542 per_cpu(appldata_timer, cpu).function = appldata_timer_function; 541 per_cpu(appldata_timer, cpu).function = appldata_timer_function;
@@ -580,7 +579,7 @@ appldata_cpu_notify(struct notifier_block *self,
580 return NOTIFY_OK; 579 return NOTIFY_OK;
581} 580}
582 581
583static struct notifier_block appldata_nb = { 582static struct notifier_block __cpuinitdata appldata_nb = {
584 .notifier_call = appldata_cpu_notify, 583 .notifier_call = appldata_cpu_notify,
585}; 584};
586 585
diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S
index c8a2212014e0..6234c6978a1f 100644
--- a/arch/s390/kernel/entry.S
+++ b/arch/s390/kernel/entry.S
@@ -769,10 +769,13 @@ mcck_return:
769 769
770 RESTORE_ALL __LC_RETURN_MCCK_PSW,0 770 RESTORE_ALL __LC_RETURN_MCCK_PSW,0
771 771
772#ifdef CONFIG_SMP
773/* 772/*
774 * Restart interruption handler, kick starter for additional CPUs 773 * Restart interruption handler, kick starter for additional CPUs
775 */ 774 */
775#ifdef CONFIG_SMP
776#ifndef CONFIG_HOTPLUG_CPU
777 .section .init.text,"ax"
778#endif
776 .globl restart_int_handler 779 .globl restart_int_handler
777restart_int_handler: 780restart_int_handler:
778 l %r15,__LC_SAVE_AREA+60 # load ksp 781 l %r15,__LC_SAVE_AREA+60 # load ksp
@@ -785,6 +788,9 @@ restart_int_handler:
785 br %r14 # branch to start_secondary 788 br %r14 # branch to start_secondary
786restart_addr: 789restart_addr:
787 .long start_secondary 790 .long start_secondary
791#ifndef CONFIG_HOTPLUG_CPU
792 .previous
793#endif
788#else 794#else
789/* 795/*
790 * If we do not run with SMP enabled, let the new CPU crash ... 796 * If we do not run with SMP enabled, let the new CPU crash ...
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S
index 93745fd8f555..685f11faa4bc 100644
--- a/arch/s390/kernel/entry64.S
+++ b/arch/s390/kernel/entry64.S
@@ -745,10 +745,13 @@ mcck_return:
745#endif 745#endif
746 lpswe __LC_RETURN_MCCK_PSW # back to caller 746 lpswe __LC_RETURN_MCCK_PSW # back to caller
747 747
748#ifdef CONFIG_SMP
749/* 748/*
750 * Restart interruption handler, kick starter for additional CPUs 749 * Restart interruption handler, kick starter for additional CPUs
751 */ 750 */
751#ifdef CONFIG_SMP
752#ifndef CONFIG_HOTPLUG_CPU
753 .section .init.text,"ax"
754#endif
752 .globl restart_int_handler 755 .globl restart_int_handler
753restart_int_handler: 756restart_int_handler:
754 lg %r15,__LC_SAVE_AREA+120 # load ksp 757 lg %r15,__LC_SAVE_AREA+120 # load ksp
@@ -759,6 +762,9 @@ restart_int_handler:
759 lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone 762 lmg %r6,%r15,__SF_GPRS(%r15) # load registers from clone
760 stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on 763 stosm __SF_EMPTY(%r15),0x04 # now we can turn dat on
761 jg start_secondary 764 jg start_secondary
765#ifndef CONFIG_HOTPLUG_CPU
766 .previous
767#endif
762#else 768#else
763/* 769/*
764 * If we do not run with SMP enabled, let the new CPU crash ... 770 * If we do not run with SMP enabled, let the new CPU crash ...