Re: [PATCH] LKCD for 2.5.44 (8/8): dump driver and build files

Stephen Hemminger (shemminger@osdl.org)
23 Oct 2002 11:35:27 -0700


The variable dump_page_buf is declared with different scope in
dump_base.c and dump_block_dev.c. This causes a link error, but maybe if
LKCD is built as a module, then the symbol export masks the problem.

diff -Nru a/drivers/dump/dump_base.c b/drivers/dump/dump_base.c
--- a/drivers/dump/dump_base.c Wed Oct 23 11:34:14 2002
+++ b/drivers/dump/dump_base.c Wed Oct 23 11:34:14 2002
@@ -200,7 +200,7 @@
static long dump_nondisruptive_enabled = 1;/* Default:non-disruptive enabled*/

/* Other global fields */
-static void *dump_page_buf; /* dump page buffer for memcpy()! */
+void *dump_page_buf; /* dump page buffer for memcpy()! */
static void *dump_page_buf_0; /* dump page buffer returned by kmalloc */
struct __dump_header dump_header; /* the primary dump header */
struct __dump_header_asm dump_header_asm; /* the arch-specific dump header */

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