Re: [2.6 patch] mm/slab: unexport kmem_cache_alloc_node

From: Andrew Morton
Date: Wed Jul 27 2005 - 15:14:38 EST


Adrian Bunk <bunk@xxxxxxxxx> wrote:
>
> I didn't find any modular usage of kmem_cache_alloc_node.
>
> Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
>
> ---
>
> This patch was already sent on:
> - 2 Jul 2005
> - 21 Jun 2005
> - 30 May 2005
> - 15 May 2005

Yeah, I've been ducking that one.

> --- linux-2.6.11-mm1-full/mm/slab.c.old 2005-03-06 15:40:38.000000000 +0100
> +++ linux-2.6.11-mm1-full/mm/slab.c 2005-03-06 15:41:06.000000000 +0100
> @@ -2431,7 +2440,6 @@
> __builtin_return_address(0));
> return objp;
> }
> -EXPORT_SYMBOL(kmem_cache_alloc_node);
>
> #endif

Even though we don't currently have in-module users, we probably will do so
soon and it's a part of the slab API and the slab API is exported to
modules. I don't see much point in partially-exporting the API and
applying a patch which we'll soon revert.

Christoph?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/