From 3bb92d7face43b9ffb8a32640965cc7423ec8819 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 11 Feb 2012 20:09:24 +0100 Subject: [PATCH] Config: CONFIG_UCW_FAKE_ELTPOOL Can be set by the user if needed, not referenced in any config scripts. --- ucw/eltpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucw/eltpool.h b/ucw/eltpool.h index 1b70d440..24911fb5 100644 --- a/ucw/eltpool.h +++ b/ucw/eltpool.h @@ -81,7 +81,7 @@ void *ep_alloc_slow(struct eltpool *pool); /* Internal. Do not call directly. */ static inline void *ep_alloc(struct eltpool *pool) { pool->num_allocated++; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL return xmalloc(pool->elt_size); #else struct eltpool_free *elt; @@ -101,7 +101,7 @@ static inline void *ep_alloc(struct eltpool *pool) static inline void ep_free(struct eltpool *pool, void *p) { pool->num_allocated--; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL (void) pool; xfree(p); #else -- 2.39.2