Re: 2.6.15+git: undefined reference to `pm_power_off'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Meelis Roos <[email protected]>
Date: Mon, 9 Jan 2006 13:30:35 +0200 (EET)

> Todays git update does not link on sparc64:
> 
>    LD      .tmp_vmlinux1
> kernel/built-in.o: In function `sys_reboot': undefined reference to `pm_power_off'
> kernel/built-in.o: In function `sys_reboot': undefined reference to `pm_power_off'

I have a fix on it's way already:

diff-tree 760c6246d9bc61e2cdee828e12617ac8696d31fd (from 5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f)
Author: David S. Miller <[email protected]>
Date:   Sun Jan 8 22:54:39 2006 -0800

    [SPARC64]: Add needed pm_power_off symbol.
    
    Signed-off-by: David S. Miller <[email protected]>

diff --git a/arch/sparc64/kernel/power.c b/arch/sparc64/kernel/power.c
index 9e8362e..30bcaf5 100644
--- a/arch/sparc64/kernel/power.c
+++ b/arch/sparc64/kernel/power.c
@@ -14,6 +14,7 @@
 #include <linux/signal.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
+#include <linux/pm.h>
 
 #include <asm/system.h>
 #include <asm/ebus.h>
@@ -70,6 +71,9 @@ void machine_power_off(void)
 	machine_halt();
 }
 
+void (*pm_power_off)(void) = machine_power_off;
+EXPORT_SYMBOL(pm_power_off);
+
 #ifdef CONFIG_PCI
 static int powerd(void *__unused)
 {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux