LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH linux-next] x86_32: fix VisualWS and Voyager kexec build failures
@ 2008-04-01 17:49 Randy Dunlap
  2008-04-02  6:49 ` Eric W. Biederman
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2008-04-01 17:49 UTC (permalink / raw)
  To: lkml, ebiederm; +Cc: mingo, tglx, hpa, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

cc: Eric Biederman <ebiederm@xmission.com>

Both Visual WS and Voyager builds fail in almost the same way (in
linux-next) without this patch:

VOYAGER:
kernel/built-in.o: In function `crash_kexec':
(.text+0x28588): undefined reference to `machine_crash_shutdown'

VISWS:
kernel/built-in.o: In function `crash_kexec':
/next-20080401/kernel/kexec.c:1074: undefined reference to `machine_crash_shutdown'
make[1]: *** [.tmp_vmlinux1] Error 1

because arch/x86/kernel/reboot.c isn't built since CONFIG_X86_BIOS_REBOOT=n,
so machine_crash_shutdown() isn't available.

This patch does seem a small bit odd since the KEXEC help text says that
kexec is independent of the system firmware.

Eric, is there some other way that this should be handled?

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 arch/x86/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- next-20080401.orig/arch/x86/Kconfig
+++ next-20080401/arch/x86/Kconfig
@@ -1094,6 +1094,7 @@ source kernel/Kconfig.hz
 
 config KEXEC
 	bool "kexec system call"
+	depends on X86_64 || X86_BIOS_REBOOT
 	help
 	  kexec is a system call that implements the ability to shutdown your
 	  current kernel, and to start another kernel.  It is like a reboot

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

* Re: [PATCH linux-next] x86_32: fix VisualWS and Voyager kexec build failures
  2008-04-01 17:49 [PATCH linux-next] x86_32: fix VisualWS and Voyager kexec build failures Randy Dunlap
@ 2008-04-02  6:49 ` Eric W. Biederman
  2008-04-02 16:56   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Eric W. Biederman @ 2008-04-02  6:49 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, ebiederm, mingo, tglx, hpa, akpm

Randy Dunlap <randy.dunlap@oracle.com> writes:

> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> cc: Eric Biederman <ebiederm@xmission.com>
>
> Both Visual WS and Voyager builds fail in almost the same way (in
> linux-next) without this patch:
>
> VOYAGER:
> kernel/built-in.o: In function `crash_kexec':
> (.text+0x28588): undefined reference to `machine_crash_shutdown'
>
> VISWS:
> kernel/built-in.o: In function `crash_kexec':
> /next-20080401/kernel/kexec.c:1074: undefined reference to
> `machine_crash_shutdown'
> make[1]: *** [.tmp_vmlinux1] Error 1
>
> because arch/x86/kernel/reboot.c isn't built since CONFIG_X86_BIOS_REBOOT=n,
> so machine_crash_shutdown() isn't available.

Weird.  I haven't had a chance to update to the devel kernels lately.
And in the older kernel I have machine_crash_shutdown is in crash.c
and is indeed not dependent xyz.

I get the feeling someone refactored something and ran afoul of the
x86_32 weird subarchitecture stuff in their testing.

> This patch does seem a small bit odd since the KEXEC help text says that
> kexec is independent of the system firmware.

Yes.

> Eric, is there some other way that this should be handled?

Yes.  Move machine_crash_shutdown back into crash.c
Or find some other way to accomplish whatever cleanup was done,
so that we still compile.

Eric

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

* Re: [PATCH linux-next] x86_32: fix VisualWS and Voyager kexec build failures
  2008-04-02  6:49 ` Eric W. Biederman
@ 2008-04-02 16:56   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2008-04-02 16:56 UTC (permalink / raw)
  To: Eric W. Biederman, linux-next, gcosta; +Cc: lkml, mingo, tglx, hpa, akpm

On Wed, 02 Apr 2008 00:49:15 -0600 Eric W. Biederman wrote:

> Randy Dunlap <randy.dunlap@oracle.com> writes:
> 
> > From: Randy Dunlap <randy.dunlap@oracle.com>
> >
> > cc: Eric Biederman <ebiederm@xmission.com>
> >
> > Both Visual WS and Voyager builds fail in almost the same way (in
> > linux-next) without this patch:
> >
> > VOYAGER:
> > kernel/built-in.o: In function `crash_kexec':
> > (.text+0x28588): undefined reference to `machine_crash_shutdown'
> >
> > VISWS:
> > kernel/built-in.o: In function `crash_kexec':
> > /next-20080401/kernel/kexec.c:1074: undefined reference to
> > `machine_crash_shutdown'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> >
> > because arch/x86/kernel/reboot.c isn't built since CONFIG_X86_BIOS_REBOOT=n,
> > so machine_crash_shutdown() isn't available.
> 
> Weird.  I haven't had a chance to update to the devel kernels lately.
> And in the older kernel I have machine_crash_shutdown is in crash.c
> and is indeed not dependent xyz.
> 
> I get the feeling someone refactored something and ran afoul of the
> x86_32 weird subarchitecture stuff in their testing.
> 
> > This patch does seem a small bit odd since the KEXEC help text says that
> > kexec is independent of the system firmware.
> 
> Yes.
> 
> > Eric, is there some other way that this should be handled?
> 
> Yes.  Move machine_crash_shutdown back into crash.c
> Or find some other way to accomplish whatever cleanup was done,
> so that we still compile.

Well.  This is a problem in linux-next and in -mm, not yet in
mainline.  Hopefully this patch (wherever it is) won't be merged
into mainline in its present form.

---
~Randy

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

end of thread, other threads:[~2008-04-02 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01 17:49 [PATCH linux-next] x86_32: fix VisualWS and Voyager kexec build failures Randy Dunlap
2008-04-02  6:49 ` Eric W. Biederman
2008-04-02 16:56   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).