From: Miles Bader <miles@lsi.nec.co.jp>
To: Christoph Hellwig <hch@infradead.org>
Cc: Linus Torvalds <torvalds@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][v850] Guard some symbol exports with #ifdef CONFIG_MMU
Date: 28 Aug 2003 16:44:06 +0900 [thread overview]
Message-ID: <buoy8xe8bw9.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <20030828082324.A32093@infradead.org>
Christoph Hellwig <hch@infradead.org> writes:
> What about moving the exports to the definitions instead?
Sounds good to me; how's this (it compiles on a no-MMU system, but ...):
diff -ruN -X../cludes linux-2.6.0-test4-uc0/kernel/ksyms.c linux-2.6.0-test4-uc0-v850-20030828/kernel/ksyms.c
--- linux-2.6.0-test4-uc0/kernel/ksyms.c 2003-08-25 13:23:54.000000000 +0900
+++ linux-2.6.0-test4-uc0-v850-20030828/kernel/ksyms.c 2003-08-28 16:36:28.000000000 +0900
@@ -120,7 +120,6 @@
EXPORT_SYMBOL(max_mapnr);
#endif
EXPORT_SYMBOL(high_memory);
-EXPORT_SYMBOL_GPL(invalidate_mmap_range);
EXPORT_SYMBOL(vmtruncate);
EXPORT_SYMBOL(find_vma);
EXPORT_SYMBOL(get_unmapped_area);
@@ -198,7 +197,6 @@
EXPORT_SYMBOL(invalidate_inode_pages);
EXPORT_SYMBOL_GPL(invalidate_inode_pages2);
EXPORT_SYMBOL(truncate_inode_pages);
-EXPORT_SYMBOL(install_page);
EXPORT_SYMBOL(fsync_bdev);
EXPORT_SYMBOL(permission);
EXPORT_SYMBOL(vfs_permission);
diff -ruN -X../cludes linux-2.6.0-test4-uc0/mm/fremap.c linux-2.6.0-test4-uc0-v850-20030828/mm/fremap.c
--- linux-2.6.0-test4-uc0/mm/fremap.c 2003-05-27 11:31:39.000000000 +0900
+++ linux-2.6.0-test4-uc0-v850-20030828/mm/fremap.c 2003-08-28 16:38:39.000000000 +0900
@@ -3,7 +3,7 @@
*
* Explicit pagetable population and nonlinear (random) mappings support.
*
- * started by Ingo Molnar, Copyright (C) 2002
+ * started by Ingo Molnar, Copyright (C) 2002, 2003
*/
#include <linux/mm.h>
@@ -13,6 +13,8 @@
#include <linux/pagemap.h>
#include <linux/swapops.h>
#include <linux/rmap-locking.h>
+#include <linux/module.h>
+
#include <asm/mmu_context.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
@@ -95,6 +97,8 @@
err:
return err;
}
+EXPORT_SYMBOL(install_page);
+
/***
* sys_remap_file_pages - remap arbitrary pages of a shared backing store
diff -ruN -X../cludes linux-2.6.0-test4-uc0/mm/memory.c linux-2.6.0-test4-uc0-v850-20030828/mm/memory.c
--- linux-2.6.0-test4-uc0/mm/memory.c 2003-08-25 13:27:38.000000000 +0900
+++ linux-2.6.0-test4-uc0-v850-20030828/mm/memory.c 2003-08-28 16:38:53.000000000 +0900
@@ -45,6 +45,7 @@
#include <linux/pagemap.h>
#include <linux/vcache.h>
#include <linux/rmap-locking.h>
+#include <linux/module.h>
#include <asm/pgalloc.h>
#include <asm/rmap.h>
@@ -1138,6 +1139,7 @@
invalidate_mmap_range_list(&mapping->i_mmap_shared, hba, hlen);
up(&mapping->i_shared_sem);
}
+EXPORT_SYMBOL_GPL(invalidate_mmap_range);
/*
* Handle all mappings that got truncated by a "truncate()"
-Miles
--
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff
prev parent reply other threads:[~2003-08-28 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 5:15 Miles Bader
2003-08-28 7:23 ` Christoph Hellwig
2003-08-28 7:44 ` Miles Bader [this message]
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=buoy8xe8bw9.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.org \
--cc=torvalds@osdl.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®