[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4B85019E.9040708@ladisch.de>
Date: Wed, 24 Feb 2010 11:38:22 +0100
From: Clemens Ladisch <clemens@...isch.de>
To: Theodore Tso <tytso@....EDU>
CC: viresh kumar <viresh.linux@...il.com>,
Borislav Petkov <petkovbb@...glemail.com>,
linux-kernel@...r.kernel.org
Subject: Re: QUERY: Inclusion of header files in kernel header files
Theodore Tso wrote:
> Also, it's highly desirable that as much as possible multiple
> inclusion is fixed up at the same time you add extra #includes into
> header files. Protecting against multiple inclusion is critical,
> yes, but even with the protection against multiple inclusion, the
> header file has to get parsed a second time, and that slows down
> kernel compiles.
Multiple inclusion of a protected header does not hurt at all; gcc
detects that a header file uses #ifdef/#endif header guards and
automatically ignores any #include for that file if the symbol is
already defined.
Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists