public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alpha build pm_power_off hack
@ 2005-12-11 23:24 Paul Jackson
  2005-12-12  5:23 ` Eric W. Biederman
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Jackson @ 2005-12-11 23:24 UTC (permalink / raw)
  To: akpm
  Cc: Eric W. Biederman, Ivan Kokshaysky, linux-kernel,
	Richard Henderson, Dave Jones, Zwane Mwaikambo, Andi Kleen,
	Raj Ashok, Paul Jackson

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@sgi.com> 1.650.933.1373, 1.925.600.0401

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

end of thread, other threads:[~2005-12-12 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-11 23:24 [PATCH] alpha build pm_power_off hack Paul Jackson
2005-12-12  5:23 ` Eric W. Biederman
2005-12-12  6:24   ` Paul Jackson
2005-12-12 12:10     ` Eric W. Biederman
2005-12-12 13:44       ` Ivan Kokshaysky

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