Re: 2.6.19-rc5-mm1

From: Andrew Morton
Date: Wed Nov 08 2006 - 14:19:44 EST


On Wed, 8 Nov 2006 15:57:20 +0100
Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx> wrote:

> CC [M] drivers/media/video/pwc/pwc-uncompress.o
> In file included from drivers/media/video/pwc/pwc-uncompress.c:29:
> include/asm/current.h: In function `get_current':
> include/asm/current.h:11: error: `size_t' undeclared (first use in this function)
> include/asm/current.h:11: error: (Each undeclared identifier is reported only once
> include/asm/current.h:11: error: for each function it appears in.)

Ah, you're i386, not x86_64. This should help.


From: Andrew Morton <akpm@xxxxxxxx>

i386's pda.h needs types.h for size_t (used by offsetof if gcc-3)

Cc: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>,
Cc: Andi Kleen <ak@xxxxxxx>
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

include/asm-i386/pda.h | 1 +
1 files changed, 1 insertion(+)

diff -puN include/asm-i386/current.h~fix-x86_64-mm-pda-current include/asm-i386/current.h
diff -puN include/asm-i386/pda.h~fix-x86_64-mm-pda-current include/asm-i386/pda.h
--- a/include/asm-i386/pda.h~fix-x86_64-mm-pda-current
+++ a/include/asm-i386/pda.h
@@ -7,6 +7,7 @@
#define _I386_PDA_H

#include <linux/stddef.h>
+#include <linux/types.h>

struct i386_pda
{
_

-
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/