Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbXA2UmO (ORCPT ); Mon, 29 Jan 2007 15:42:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932518AbXA2UmO (ORCPT ); Mon, 29 Jan 2007 15:42:14 -0500 Received: from omx1-ext.sgi.com ([192.48.179.11]:46919 "EHLO omx1.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932333AbXA2UmK (ORCPT ); Mon, 29 Jan 2007 15:42:10 -0500 Date: Mon, 29 Jan 2007 12:41:33 -0800 (PST) From: Christoph Lameter To: Jeff Dike cc: akpm@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] slab.c ifdef reduction breaks build In-Reply-To: Message-ID: References: <20070129200517.GA6229@ccure.user-mode-linux.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 36 I also hit the same issue. Here is the patch: Fix slab build failure if !CONFIG_ZONE_DMA I also needed this to get 2.6.20-rc6-mm2 to build. Fixes the fix by the complainer about the fixes. #ifdef cannot be avoided since cs_dmacachep is no longer defined. Signed-off-by: Christoph Lameter Index: linux-2.6.20-rc6-mm2/mm/slab.c =================================================================== --- linux-2.6.20-rc6-mm2.orig/mm/slab.c 2007-01-29 14:27:58.000000000 -0600 +++ linux-2.6.20-rc6-mm2/mm/slab.c 2007-01-29 14:33:04.270329009 -0600 @@ -1503,6 +1503,7 @@ void __init kmem_cache_init(void) ARCH_KMALLOC_FLAGS|SLAB_PANIC, NULL, NULL); } +#ifdef CONFIG_ZONE_DMA if (CONFIG_ZONE_DMA_FLAG) sizes->cs_dmacachep = kmem_cache_create( names->name_dma, @@ -1511,6 +1512,7 @@ void __init kmem_cache_init(void) ARCH_KMALLOC_FLAGS|SLAB_CACHE_DMA| SLAB_PANIC, NULL, NULL); +#endif sizes++; names++; } - 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/