[PATCH] uml: fix pm_power_off link failure

From: Miklos Szeredi
Date: Mon Dec 12 2005 - 10:52:58 EST


Andrew,

please scrap my the previous pm_power_off fix, it didn't work out.
This just fixes UML:

LD .tmp_vmlinux1
kernel/built-in.o(.text+0x148e1): In function `sys_reboot':
kernel/sys.c:535: undefined reference to `pm_power_off'

On uml machine_halt() just calls machine_power_off() so it's safe to
leave pm_power_off as NULL.

Signed-off-by: Miklos Szeredi <miklos@xxxxxxxxxx>
---

Index: linux/arch/um/kernel/reboot.c
===================================================================
--- linux.orig/arch/um/kernel/reboot.c 2005-10-28 02:02:08.000000000 +0200
+++ linux/arch/um/kernel/reboot.c 2005-12-12 16:10:16.000000000 +0100
@@ -12,6 +12,8 @@
#include "mode.h"
#include "choose-mode.h"

+void (*pm_power_off)(void);
+
#ifdef CONFIG_SMP
static void kill_idlers(int me)
{

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/