mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
To: linux-kernel@vger.kernel.org
Subject: swapper_space export
Date: Tue, 16 May 2006 19:24:43 -0400	[thread overview]
Message-ID: <20060516232443.GA10762@filer.fsl.cs.sunysb.edu> (raw)

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)
 

             reply	other threads:[~2006-05-16 23:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-16 23:24 Josef Sipek [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060516232443.GA10762@filer.fsl.cs.sunysb.edu \
    --to=jsipek@fsl.cs.sunysb.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®