[PATCH] alpha build pm_power_off hack

From: Paul Jackson
Date: Sun Dec 11 2005 - 18:24:41 EST


This follows up Eric W. Biederman's patch of Dec 8, 2005:
[PATCH] Don't attempt to power off if power off is not implemented.

To avoid having problems with one arch break the crosstool
builds which developers for other arch's do to ensure they
haven't added an arch-specific build bug, add a NULL
pm_power_off() function pointer definition to the alpha build.

Without this change, an alpha build fails in the final link
stage, for the missing 'pm_power_off' symbol that is used
in kernel/sys.c

If the alpha developers don't like the behaviour of '/sbin/halt'
on their kernel, I will leave that to them to figure out.

Signed-off-by: Paul Jackson

---

arch/alpha/kernel/process.c | 5 +++++
1 files changed, 5 insertions(+)

--- 2.6.15-rc5-mm2.orig/arch/alpha/kernel/process.c 2005-12-11 15:07:52.000000000 -0800
+++ 2.6.15-rc5-mm2/arch/alpha/kernel/process.c 2005-12-11 15:09:33.000000000 -0800
@@ -43,6 +43,11 @@
#include "proto.h"
#include "pci_impl.h"

+/*
+ * Power off function, if any
+ */
+void (*pm_power_off)(void);
+
void
cpu_idle(void)
{

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373, 1.925.600.0401
-
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/