Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Jun 2002 05:10:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Jun 2002 05:10:53 -0400 Received: from ausmtp02.au.ibm.COM ([202.135.136.105]:54979 "EHLO ausmtp02.au.ibm.com") by vger.kernel.org with ESMTP id ; Tue, 11 Jun 2002 05:10:49 -0400 From: Rusty Russell To: Linus Torvalds Cc: dent@cosy.sbg.ac.at, adilger@clusterfs.com, da-x@gmx.net, patch@luckynet.dynu.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2.5.21 - list.h cleanup In-Reply-To: Your message of "Tue, 11 Jun 2002 01:33:54 MST." Date: Tue, 11 Jun 2002 19:14:51 +1000 Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In message you wri te: > > > On Tue, 11 Jun 2002, Rusty Russell wrote: > > > > Worst sin is that you can't predeclare typedefs. For many uses (not the > > list macros of course): > > struct xx; > > is sufficient and avoids the #include hell, > > True. > > However, that only works for function declarations. Our headers basically consist of: 1) Macros 2) Structure declarations 3) Function declarations 4) Inline functions The number of structures and functions which need only "struct xxx *" is very high: removing typedefs is something about with ~zero pain (unlike dropping the sometimes-dubious loveaffair with inlines). Rusty. PS. I blame Ingo: list_t indeed! -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/