mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* swapper_space export
@ 2006-05-16 23:24 Josef Sipek
  2006-05-17 10:15 ` Adrian Bunk
  2006-05-17 11:18 ` Arjan van de Ven
  0 siblings, 2 replies; 6+ messages in thread
From: Josef Sipek @ 2006-05-16 23:24 UTC (permalink / raw)
  To: linux-kernel

I was trying to compile the Unionfs[1] to get it up to sync it up with
the kernel developments from the past few months. Anyway, long story
short...swapper_space (defined in mm/swap_state.c) is not exported
anymore (git commit: 4936967374c1ad0eb3b734f24875e2484c3786cc). This
apparently is not an issue for most modules. Troubles arise when the
modules include mm.h or any of its relatives.

One simply gets a linker error about swapper_space not being defined.
The problem is that it is used in mm.h.

I included a reverse patch to export the symbol again.

Josef "Jeff" Sipek.

[1] http://unionfs.filesystems.org


Export swapper_space because several include files reference it.

Signed-off-by: Josef Sipek <jsipek@cs.sunysb.edu>

--- a/mm/swap_state.c.orig	2006-05-16 18:23:38.000000000 -0400
+++ b/mm/swap_state.c		2006-05-16 18:22:57.000000000 -0400
@@ -43,6 +43,7 @@
 	.i_mmap_nonlinear = LIST_HEAD_INIT(swapper_space.i_mmap_nonlinear),
 	.backing_dev_info = &swap_backing_dev_info,
 };
+EXPORT_SYMBOL(swapper_space);
 
 #define INC_CACHE_INFO(x)	do { swap_cache_info.x++; } while (0)
 

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

end of thread, other threads:[~2006-05-17 19:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-16 23:24 swapper_space export Josef Sipek
2006-05-17 10:15 ` Adrian Bunk
2006-05-17 11:18 ` Arjan van de Ven
2006-05-17 15:22   ` Andrew Morton
2006-05-17 15:52   ` Hugh Dickins
2006-05-17 19:12     ` Josef Sipek

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

all inboxes | Powered by JetHome®