Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751613AbaBHTMQ (ORCPT ); Sat, 8 Feb 2014 14:12:16 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:39017 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbaBHTMN (ORCPT ); Sat, 8 Feb 2014 14:12:13 -0500 From: Richard Yao To: Linus Torvalds Cc: Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , "David S. Miller" , V9FS Develooper Mailing List , Linux Netdev Mailing List , Linux Kernel Mailing List , "Aneesh Kumar K.V" , Will Deacon , Christopher Covington , Matthew Thode Subject: [PATCH 1/2] mm/vmalloc: export is_vmalloc_or_module_addr Date: Sat, 8 Feb 2014 14:12:09 -0500 Message-Id: <1391886730-19667-2-git-send-email-ryao@gentoo.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1391886730-19667-1-git-send-email-ryao@gentoo.org> References: <1391886730-19667-1-git-send-email-ryao@gentoo.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/