[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#318979: asm-sparc/fbio.h uses __user but does not include linux/compiler.h



At Tue, 19 Jul 2005 01:55:30 +0200,
Adeodato Simó wrote:
>   on SPARC, the following change was made to the files
>   /usr/include/asm-sparc{,64}/fbio.h between linux-kernel-headers
>   2.5.999-test7-bk-17 and 2.6.12.0-1:
> 
>  struct  fbcmap {
>          int             index;          /* first element (0 origin) */
>          int             count;
> -        unsigned char   *red;
> -        unsigned char   *green;
> -        unsigned char   *blue;
> +        unsigned char   __user *red;
> +        unsigned char   __user *green;
> +        unsigned char   __user *blue;
>  };
> 
>   However, only asm-sparc64/fbio.h got added a line #including
>   <linux/compiler.h>, where __user is defined, causing gcc to fail on
>   programs that include asm-sparc/fbio.h.
> 
>   This has already affected some autobuilders (e.g., [1]), so please
>   upload a fixed linux-kernel-headers package soon to address this
>   issue.

Yes, right.  I added the patch that includes linux/compiler.h for
asm-sparc/fbio.h with small changes.  It'll be fixed in the next lkh
upload.

Regards,
-- gotom



Reply to: