Re: [patch] crashdump: fix undefined reference to `elfcorehdr_addr'

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Horman
Date: Sunday, July 27, 2008 - 4:45 pm

On Sat, Jul 26, 2008 at 03:10:34AM -0700, Andrew Morton wrote:

Perhaps is_kdump_kernel() ought to be renamed kernel_has_vmcore().

To my mind, is_kdump_kernel() should really look something like this:

#ifdef CONFIG_CRASH_DUMP
static inline int is_kdump_kernel(void) { return 1; }
#else
static inline int is_kdump_kernel(void) { return 0; }
#endif

But that can probably just be handled by any relevant code
using CONFIG_CRASH_DUMP as necessary.



-- 
Horms

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch] crashdump: fix undefined reference to `elfcore ..., Simon Horman, (Sun Jul 27, 4:45 pm)
Re: [patch] crashdump: fix undefined reference to `elfcore ..., Eric W. Biederman, (Sun Jul 27, 10:39 pm)
Re: [patch] crashdump: fix undefined reference to `elfcore ..., Eric W. Biederman, (Mon Jul 28, 12:12 pm)
Re: [PATCH 1/5] Move elfcorehdr_addr out of vmcore.c (Was: ..., Eric W. Biederman, (Mon Jul 28, 3:37 pm)
Re: [PATCH 1/5] Move elfcorehdr_addr out of vmcore.c (Was: ..., Eric W. Biederman, (Mon Jul 28, 3:47 pm)