From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 28 Nov 2006 20:06:19 -0800 From: Andrew Morton Subject: Re: Slab: Remove kmem_cache_t Message-Id: <20061128200619.67080e11.akpm@osdl.org> In-Reply-To: <456D0FC4.4050704@yahoo.com.au> References: <456D0757.6050903@yahoo.com.au> <456D0FC4.4050704@yahoo.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Nick Piggin Cc: Christoph Lameter , linux-mm@kvack.org, Linus Torvalds List-ID: On Wed, 29 Nov 2006 15:42:44 +1100 Nick Piggin wrote: > So what exactly is wrong with > a kmem_cache_t declaration in include files, then? a) it's a typedef and b) it's a typedef, and you cannot forward-declare typedefs. We've hit this a couple of times. Header files need to include slab.h just to be able to do extern kmem_cache_t *wozzle; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org