Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932598AbbGGPJv (ORCPT ); Tue, 7 Jul 2015 11:09:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52796 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932369AbbGGPJj (ORCPT ); Tue, 7 Jul 2015 11:09:39 -0400 Date: Tue, 7 Jul 2015 11:09:38 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Mike Snitzer cc: "Alasdair G. Kergon" , Edward Thornber , Andrew Morton , David Rientjes , Vivek Goyal , linux-kernel@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com Subject: [PATCH 1/7] mm/vmalloc: export __vmalloc_node_flags In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1911 Lines: 46 Export the function __vmalloc_node_flags. Signed-off-by: Mikulas Patocka --- include/linux/vmalloc.h | 1 + mm/vmalloc.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) Index: linux-4.1/include/linux/vmalloc.h =================================================================== --- linux-4.1.orig/include/linux/vmalloc.h 2015-07-02 19:19:43.000000000 +0200 +++ linux-4.1/include/linux/vmalloc.h 2015-07-02 19:20:59.000000000 +0200 @@ -75,6 +75,7 @@ extern void *vmalloc_exec(unsigned long extern void *vmalloc_32(unsigned long size); extern void *vmalloc_32_user(unsigned long size); extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot); +void *__vmalloc_node_flags(unsigned long size, int node, gfp_t flags); extern void *__vmalloc_node_range(unsigned long size, unsigned long align, unsigned long start, unsigned long end, gfp_t gfp_mask, pgprot_t prot, unsigned long vm_flags, int node, Index: linux-4.1/mm/vmalloc.c =================================================================== --- linux-4.1.orig/mm/vmalloc.c 2015-07-02 19:19:13.000000000 +0200 +++ linux-4.1/mm/vmalloc.c 2015-07-02 19:21:00.000000000 +0200 @@ -1722,12 +1722,12 @@ void *__vmalloc(unsigned long size, gfp_ } EXPORT_SYMBOL(__vmalloc); -static inline void *__vmalloc_node_flags(unsigned long size, - int node, gfp_t flags) +void *__vmalloc_node_flags(unsigned long size, int node, gfp_t flags) { return __vmalloc_node(size, 1, flags, PAGE_KERNEL, node, __builtin_return_address(0)); } +EXPORT_SYMBOL(__vmalloc_node_flags); /** * vmalloc - allocate virtually contiguous memory -- 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/