Re: 2.6.9 BK build broken

Matthias Andree
2004-10-19T09:03:54Z

On Mon, 18 Oct 2004, Andrew Morton wrote:

> Matthias Andree <matthias.andree@gmx.de> wrote:
> >
> > include/linux/compiler.h:20: syntax error in macro parameter list
>
> I used this:
>
> diff -puN include/linux/compiler.h~builtin_warning-is-not-traditional include/linux/compiler.h
> --- 25/include/linux/compiler.h~builtin_warning-is-not-traditional 2004-10-18 22:08:25.224796488 -0700
> +++ 25-akpm/include/linux/compiler.h 2004-10-18 22:09:05.505672864 -0700
> @@ -17,7 +17,9 @@ extern void __chk_io_ptr(void __iomem *)
> # define __iomem
> # define __chk_user_ptr(x) (void)0
> # define __chk_io_ptr(x) (void)0
> -#define __builtin_warning(x, ...) (1)
> +#ifndef __ASSEMBLY__ /* gcc -traditional fails with varargs-style macros */
> +# define __builtin_warning(x, ...) (1)
> +#endif
> #endif

This fixes the problem for me with SuSE's gcc-3.3.3-41, with pristine
gcc-3.3.4 and gcc-3.4.2.

Thank you!

--
Matthias Andree