Re: [PATCH] include <linux/types.h> into linux/dlm_plock.h for__u* typedef

From: Kirill A. Shutemov
Date: Thu Sep 11 2008 - 11:29:02 EST


On Wed, Sep 10, 2008 at 01:18:24PM -0700, David Miller wrote:
> From: "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx>
> Date: Wed, 10 Sep 2008 16:15:13 +0300
>
> > $ make headers_install
> > ...
> > $ gcc usr/include/linux/dlm_plock.h
> > usr/include/linux/dlm_plock.h:25: error: expected specifier-qualifier-list
> > before â__u32â
>
> That's not how this file is used by real applications.
> Anybody can cook up contrived cases like this.
>
> Please show a real application or kernel compilation which breaks
> because of the lack of types.h include here.

Any application which include this header before linux/types.h (directly or
indirectly) will get the error. It's dependence on the order of inclusion.

--
Regards, Kirill A. Shutemov
+ Belarus, Minsk
+ ALT Linux Team, http://www.altlinux.com/

Attachment: signature.asc
Description: Digital signature