From: Richard Yao <ryao@gentoo.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>,
Ron Minnich <rminnich@sandia.gov>,
Latchesar Ionkov <lucho@ionkov.net>,
"David S. Miller" <davem@davemloft.net>,
V9FS Develooper Mailing List
<v9fs-developer@lists.sourceforge.net>,
Linux Netdev Mailing List <netdev@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
Will Deacon <will.deacon@arm.com>,
Christopher Covington <cov@codeaurora.org>,
Matthew Thode <mthode@mthode.org>
Subject: [PATCH 1/2] mm/vmalloc: export is_vmalloc_or_module_addr
Date: Sat, 8 Feb 2014 14:12:09 -0500 [thread overview]
Message-ID: <1391886730-19667-2-git-send-email-ryao@gentoo.org> (raw)
In-Reply-To: <1391886730-19667-1-git-send-email-ryao@gentoo.org>
9p-virtio needs is_vmalloc_or_module_addr exported before a patch can be
merged to prevent the virtio zero-copy routines from triggering a
hypervisor page fault when loading kernel modules:
https://groups.google.com/forum/#!topic/linux.kernel/eRR7AyLE29Y
Without this export, the kernel build breaks with that patch applied and
CONFIG_NET_9P_VIRTIO=m. With this export in place, all is well.
Signed-off-by: Richard Yao <ryao@gentoo.org>
---
mm/vmalloc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 0fdf968..8a2e54f 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -218,6 +218,7 @@ int is_vmalloc_or_module_addr(const void *x)
#endif
return is_vmalloc_addr(x);
}
+EXPORT_SYMBOL(is_vmalloc_or_module_addr);
/*
* Walk a vmap address to the struct page it maps.
--
1.8.3.2
next prev parent reply other threads:[~2014-02-08 19:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-08 19:12 [PATCH 0/2] Attention by Linus Torvalds needed to export symbol he wrote Richard Yao
2014-02-08 19:12 ` Richard Yao [this message]
2014-02-08 19:45 ` [PATCH 1/2] mm/vmalloc: export is_vmalloc_or_module_addr Linus Torvalds
2014-02-08 19:58 ` Richard Yao
2014-02-08 20:06 ` Linus Torvalds
2014-02-08 20:44 ` Richard Yao
2014-02-08 22:24 ` Linus Torvalds
2014-02-08 23:39 ` Richard Yao
2014-02-10 19:33 ` Andy Lutomirski
2014-02-10 19:43 ` Linus Torvalds
2014-02-10 12:10 ` Mel Gorman
2014-02-10 14:40 ` Dave Kleikamp
2014-02-08 19:12 ` [PATCH 2/2] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers Richard Yao
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=1391886730-19667-2-git-send-email-ryao@gentoo.org \
--to=ryao@gentoo.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=cov@codeaurora.org \
--cc=davem@davemloft.net \
--cc=ericvh@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=mthode@mthode.org \
--cc=netdev@vger.kernel.org \
--cc=rminnich@sandia.gov \
--cc=torvalds@linux-foundation.org \
--cc=v9fs-developer@lists.sourceforge.net \
--cc=will.deacon@arm.com \
/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®