2005-04-06 01:22:59

by Berck E. Nash

[permalink] [raw]
Subject: 2.6.12-rc2-mm1 compile error in mmx.c

2.6.12-rc2-mm1 fails to build for me with the following error:

arch/i386/lib/mmx.c:374: error: conflicting types for `mmx_clear_page'
include/asm/mmx.h:11: error: previous declaration of `mmx_clear_page'
make[1]: *** [arch/i386/lib/mmx.o] Error 1
make: *** [arch/i386/lib] Error 2

I hope this is useful-- I apologize if it is not. (I browsed the
archives, and no one seems to be complaining of the same thing so far.)
I'm not subscribed to the list, but I'll gladly provide more
information if you CC me on a response.


2005-04-06 05:18:10

by Andrew James Wade

[permalink] [raw]
Subject: Re: 2.6.12-rc2-mm1 compile error in mmx.c

On April 5, 2005 09:22 pm, Berck E. Nash wrote:
> 2.6.12-rc2-mm1 fails to build for me with the following error:
>
> arch/i386/lib/mmx.c:374: error: conflicting types for `mmx_clear_page'
> include/asm/mmx.h:11: error: previous declaration of `mmx_clear_page'
> make[1]: *** [arch/i386/lib/mmx.o] Error 1
> make: *** [arch/i386/lib] Error 2

I don't know the proper fix, but reversing this patch:
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc2/2.6.12-rc2-mm1/broken-out/add-a-clear_pages-function-to-clear-pages-of-higher.patch
worked for me.