Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262715AbTI1Sw5 (ORCPT ); Sun, 28 Sep 2003 14:52:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262716AbTI1Sw5 (ORCPT ); Sun, 28 Sep 2003 14:52:57 -0400 Received: from fw.osdl.org ([65.172.181.6]:11719 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262715AbTI1Swz (ORCPT ); Sun, 28 Sep 2003 14:52:55 -0400 Date: Sun, 28 Sep 2003 11:52:27 -0700 (PDT) From: Linus Torvalds To: Sam Ravnborg cc: Geert Uytterhoeven , Bernardo Innocenti , Kernel Mailing List Subject: Re: Linux 2.6.0-test6 In-Reply-To: <20030928184642.GA1681@mars.ravnborg.org> Message-ID: 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 On Sun, 28 Sep 2003, Sam Ravnborg wrote: > > Would it help to require all major[1] header files to include all the > header files needed for them to compile? It causes tons of extra work for the compiler if the compiler doesn't optimize away redundant header files (same header file being included from a lot of different sources). I did the pruning in sparse, and I think at least gcc-3 does it too, but I'm not sure. If so, then sure, we could just require that the header files compile cleanly, and for extra points verify that the end result is an empty object file (ie no bad declarations anywhere..). 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/