public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64: fix section mismatch in arch/ia64/kernel/palinfo.c
@ 2008-04-30  7:50 Hidetoshi Seto
  2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/irq.c Hidetoshi Seto
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hidetoshi Seto @ 2008-04-30  7:50 UTC (permalink / raw)
  To: linux-ia64

This patch removes following warning:

	WARNING: vmlinux.o(.exit.text+0xb1): Section mismatch in
	reference from the function palinfo_exit() to the variable
	.cpuinit.data:palinfo_cpu_notifier

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 arch/ia64/kernel/palinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c
index 396004e..4547a20 100644
--- a/arch/ia64/kernel/palinfo.c
+++ b/arch/ia64/kernel/palinfo.c
@@ -1053,7 +1053,7 @@ static int __cpuinit palinfo_cpu_callback(struct notifier_block *nfb,
 	return NOTIFY_OK;
 }
 
-static struct notifier_block palinfo_cpu_notifier __cpuinitdata +static struct notifier_block __refdata palinfo_cpu_notifier  {
 	.notifier_call = palinfo_cpu_callback,
 	.priority = 0,

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ia64: fix section mismatch in arch/ia64/kernel/irq.c
  2008-04-30  7:50 [PATCH] ia64: fix section mismatch in arch/ia64/kernel/palinfo.c Hidetoshi Seto
@ 2008-04-30  7:50 ` Hidetoshi Seto
  2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/topology.c Hidetoshi Seto
  2008-04-30  7:51 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/acpi.c Hidetoshi Seto
  2 siblings, 0 replies; 4+ messages in thread
From: Hidetoshi Seto @ 2008-04-30  7:50 UTC (permalink / raw)
  To: linux-ia64

This patch shuts up the following:

	WARNING: vmlinux.o(.text+0x7102): Section mismatch in
	reference from the function fixup_irqs() to the function
	.devinit.text:ia64_disable_timer()

Removing ia64_disable_timer() is safe because there are no functions
calling it other than the fixup_irqs(),

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 arch/ia64/kernel/irq.c  |    4 ++--
 arch/ia64/kernel/time.c |    5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c
index 6dee579..7fd18f5 100644
--- a/arch/ia64/kernel/irq.c
+++ b/arch/ia64/kernel/irq.c
@@ -183,10 +183,10 @@ void fixup_irqs(void)
 {
 	unsigned int irq;
 	extern void ia64_process_pending_intr(void);
-	extern void ia64_disable_timer(void);
 	extern volatile int time_keeper_id;
 
-	ia64_disable_timer();
+	/* Mask ITV to disable timer */
+	ia64_set_itv(1 << 16);
 
 	/*
 	 * Find a new timesync master
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index 48e15a5..8c73643 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -379,11 +379,6 @@ static struct irqaction timer_irqaction = {
 	.name =		"timer"
 };
 
-void __devinit ia64_disable_timer(void)
-{
-	ia64_set_itv(1 << 16);
-}
-
 void __init
 time_init (void)
 {

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ia64: fix section mismatch in arch/ia64/kernel/topology.c
  2008-04-30  7:50 [PATCH] ia64: fix section mismatch in arch/ia64/kernel/palinfo.c Hidetoshi Seto
  2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/irq.c Hidetoshi Seto
@ 2008-04-30  7:50 ` Hidetoshi Seto
  2008-04-30  7:51 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/acpi.c Hidetoshi Seto
  2 siblings, 0 replies; 4+ messages in thread
From: Hidetoshi Seto @ 2008-04-30  7:50 UTC (permalink / raw)
  To: linux-ia64

This patch silences:

	WARNING: vmlinux.o(.text+0x44672): Section mismatch in
	reference from the function arch_register_cpu() to the
	function .cpuinit.text:register_cpu()

Changes are based on codes in arch/x86/kernel/topology.c

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 arch/ia64/kernel/topology.c |   16 ++++++++++------
 include/asm-ia64/cpu.h      |    2 +-
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
index abb17a6..30c5db8 100644
--- a/arch/ia64/kernel/topology.c
+++ b/arch/ia64/kernel/topology.c
@@ -36,9 +36,11 @@ void arch_fix_phys_package_id(int num, u32 slot)
 }
 EXPORT_SYMBOL_GPL(arch_fix_phys_package_id);
 
-int arch_register_cpu(int num)
+
+#ifdef CONFIG_HOTPLUG_CPU
+int __ref arch_register_cpu(int num)
 {
-#if defined (CONFIG_ACPI) && defined (CONFIG_HOTPLUG_CPU)
+#ifdef CONFIG_ACPI
 	/*
 	 * If CPEI can be re-targetted or if this is not
 	 * CPEI target, then it is hotpluggable
@@ -47,19 +49,21 @@ int arch_register_cpu(int num)
 		sysfs_cpus[num].cpu.hotpluggable = 1;
 	map_cpu_to_node(num, node_cpuid[num].nid);
 #endif
-
 	return register_cpu(&sysfs_cpus[num].cpu, num);
 }
-
-#ifdef CONFIG_HOTPLUG_CPU
+EXPORT_SYMBOL(arch_register_cpu);
 
 void arch_unregister_cpu(int num)
 {
 	unregister_cpu(&sysfs_cpus[num].cpu);
 	unmap_cpu_from_node(num, cpu_to_node(num));
 }
-EXPORT_SYMBOL(arch_register_cpu);
 EXPORT_SYMBOL(arch_unregister_cpu);
+#else
+static int __init arch_register_cpu(int num)
+{
+	return register_cpu(&sysfs_cpus[num].cpu, num);
+}
 #endif /*CONFIG_HOTPLUG_CPU*/
 
 
diff --git a/include/asm-ia64/cpu.h b/include/asm-ia64/cpu.h
index e87fa32..fcca30b 100644
--- a/include/asm-ia64/cpu.h
+++ b/include/asm-ia64/cpu.h
@@ -14,8 +14,8 @@ DECLARE_PER_CPU(struct ia64_cpu, cpu_devices);
 
 DECLARE_PER_CPU(int, cpu_state);
 
-extern int arch_register_cpu(int num);
 #ifdef CONFIG_HOTPLUG_CPU
+extern int arch_register_cpu(int num);
 extern void arch_unregister_cpu(int);
 #endif
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ia64: fix section mismatch in arch/ia64/kernel/acpi.c
  2008-04-30  7:50 [PATCH] ia64: fix section mismatch in arch/ia64/kernel/palinfo.c Hidetoshi Seto
  2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/irq.c Hidetoshi Seto
  2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/topology.c Hidetoshi Seto
@ 2008-04-30  7:51 ` Hidetoshi Seto
  2 siblings, 0 replies; 4+ messages in thread
From: Hidetoshi Seto @ 2008-04-30  7:51 UTC (permalink / raw)
  To: linux-ia64

This patch kills:

	WARNING: vmlinux.o(.text+0x1702): Section mismatch in
	reference from the function acpi_register_ioapic() to the
	function .devinit.text:iosapic_init()

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 arch/ia64/kernel/acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index c7467f8..19709a0 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -966,7 +966,7 @@ acpi_map_iosapics (void)
 fs_initcall(acpi_map_iosapics);
 #endif				/* CONFIG_ACPI_NUMA */
 
-int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base)
+int __ref acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base)
 {
 	int err;
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-30  7:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30  7:50 [PATCH] ia64: fix section mismatch in arch/ia64/kernel/palinfo.c Hidetoshi Seto
2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/irq.c Hidetoshi Seto
2008-04-30  7:50 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/topology.c Hidetoshi Seto
2008-04-30  7:51 ` [PATCH] ia64: fix section mismatch in arch/ia64/kernel/acpi.c Hidetoshi Seto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox