Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964955AbWJWRGF (ORCPT ); Mon, 23 Oct 2006 13:06:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964963AbWJWRGE (ORCPT ); Mon, 23 Oct 2006 13:06:04 -0400 Received: from smtp.osdl.org ([65.172.181.4]:11750 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S964955AbWJWRGC (ORCPT ); Mon, 23 Oct 2006 13:06:02 -0400 Date: Mon, 23 Oct 2006 10:05:43 -0700 (PDT) From: Linus Torvalds To: Geert Uytterhoeven cc: Andi Kleen , Randy Dunlap , Stefan Richter , Al Viro , Alexey Dobriyan , Linux Kernel Development , linux-arch@vger.kernel.org Subject: Re: dealing with excessive includes In-Reply-To: Message-ID: References: <20061017005025.GF29920@ftp.linux.org.uk> <20061020091302.a2a85fb1.rdunlap@xenotime.net> <200610230059.23806.ak@suse.de> 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: 1208 Lines: 27 On Mon, 23 Oct 2006, Geert Uytterhoeven wrote: > > I agree _verifying_ this for all config and arch combinations is hard. > But my point is that right now we're `solving' this at the user (of the > include) level, which is an order of magnitude more work. > If the includes were (sufficiently) self-contained, the driver writers would > have to care less about config/arch dependencies. But header files already basically are self-contained. They didn't always use to be that way, but over the years, we've generally made them that way in almost all cases. The problem is generally not that they aren't self-contained, it's that they bring in other things depending on architecture, and then some driver depends on a header file including other header files, even when that isn't always the case at all: exactly because which header file it includes depends on config options (to a small degree) and on architecture (to a much larger degree). Linus - 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/