Re: [SPARC64][PPC] strange error ..

From: Tom Rini
Date: Mon Mar 15 2004 - 14:02:27 EST


On Mon, Mar 15, 2004 at 07:41:57PM +0100, Wojciech 'Sas' Cieciwa wrote:

> OK. here is trivial fix:
>
> --- linux-2.6.4/init/do_mounts_initrd.c.org 2004-03-15 09:24:58.000000000 +0100
> +++ linux-2.6.4/init/do_mounts_initrd.c 2004-03-15 19:35:50.186528400 +0100
> @@ -1,6 +1,6 @@
> #define __KERNEL_SYSCALLS__
> -#include <linux/unistd.h>
> #include <linux/kernel.h>
> +#include <linux/unistd.h>
> #include <linux/fs.h>
> #include <linux/minix_fs.h>
> #include <linux/ext2_fs.h>

That leaves the more general problem of <asm/unistd.h> uses 'asmlinkage'
on platforms where either (or both) of the following can be true:
- 'asmlinkage' is a meaningless term, and shouldn't be used.
- <asm/unistd.h> doesn't include <linux/linkage.h> so it's possible
another file down the line breaks.

--
Tom Rini
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/