[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101201173720.GL26184@shisha.kicks-ass.net>
Date: Wed, 1 Dec 2010 19:37:20 +0200
From: Alexander Shishkin <virtuoso@...nd.org>
To: Julien Cristau <jcristau@...ian.org>
Cc: linux-kernel@...r.kernel.org, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...e.de>,
Alexander Shishkin <virtuoso@...nd.org>
Subject: Re: [PATCH 1/4] drm: fix headers to include linux/types.h
On Wed, Dec 01, 2010 at 05:54:18PM +0100, Julien Cristau wrote:
> On Wed, Dec 1, 2010 at 17:10:42 +0200, Alexander Shishkin wrote:
>
> > For headers that get exported to userland and make use of u32 style
> > type names, it is advised to include linux/types.h.
> >
> > This fixes 5 headers_check warnings.
> >
> How many times does this need to be NAKed? These headers are shared
> with the BSDs, and they include drm.h which has the linux/types.h
> include on linux already.
One of the rules of including files that comes to mind is that one should
never rely on stuff being included from other headers but always explicitly
include those which are needed.
But if compatibility with other OS kernels is a valid reason to disregard
common coding practices, maybe at least it deserves a comment in those files?
But I really couldn't care less about these headers, so this is totally up
to you.
Regards,
--
Alex
--
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