[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <12373.1355858223@warthog.procyon.org.uk>
Date: Tue, 18 Dec 2012 19:17:03 +0000
From: David Howells <dhowells@...hat.com>
To: Joe Perches <joe@...ches.com>
Cc: dhowells@...hat.com, Andrew Morton <akpm@...ux-foundation.org>,
Andy Whitcroft <apw@...onical.com>,
Marcelo Tosatti <mtosatti@...hat.com>,
Alexander Graf <agraf@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] checkpatch: Warn on #include <uapi/...
Joe Perches <joe@...ches.com> wrote:
> + if ($path =~ "^uapi/") {
> + ERROR("UAPI_INCLUDE",
> + "#include should not start with uapi/\n" . $herecurr);
> }
But does this limit the check only to headers in uapi/ directories? You need
to be able to do this outside of a uapi/ directory. For instance,
include/linux/fs.h shadows include/uapi/linux/fs.h and so the former has to
#include the latter directly as <uapi/linux/fs.h> or else suffer a circular
link.
David
--
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