Export swapper_space
From: Russell King
Date: Thu Jun 03 2004 - 10:24:12 EST
swapper_space appears to be needed by modules:
Building modules, stage 2.
MODPOST
*** Warning: "swapper_space" [drivers/block/loop.ko] undefined!
*** Warning: "swapper_space" [drivers/scsi/st.ko] undefined!
*** Warning: "swapper_space" [drivers/scsi/sg.ko] undefined!
--- orig/mm/swap_state.c Mon May 24 11:26:25 2004
+++ linux/mm/swap_state.c Thu Jun 3 16:11:58 2004
@@ -6,7 +6,7 @@
*
* Rewritten to use page cache, (C) 1998 Stephen Tweedie
*/
-
+#include <linux/module.h>
#include <linux/mm.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
@@ -38,6 +38,7 @@ struct address_space swapper_space = {
.a_ops = &swap_aops,
.backing_dev_info = &swap_backing_dev_info,
};
+EXPORT_SYMBOL(swapper_space);
#define INC_CACHE_INFO(x) do { swap_cache_info.x++; } while (0)
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
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/