[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0701101413130.3594@woody.osdl.org>
Date: Wed, 10 Jan 2007 14:16:59 -0800 (PST)
From: Linus Torvalds <torvalds@...l.org>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Andrew Morton <akpm@...l.org>,
Al Viro <viro@...iv.linux.org.uk>,
Linux Kernel Development <linux-kernel@...r.kernel.org>,
Linux/m68k <linux-m68k@...r.kernel.org>
Subject: Re: [PATCH] mm: pagefault_{disable,enable}()
On Wed, 10 Jan 2007, Geert Uytterhoeven wrote:
>
> This change causes lots of compile errors of the following form on m68k:
>
> | linux-2.6.20-rc4/include/linux/uaccess.h: In function `pagefault_disable':
> | linux-2.6.20-rc4/include/linux/uaccess.h:18: error: dereferencing pointer to incomplete type
> | linux-2.6.20-rc4/include/linux/uaccess.h: In function `pagefault_enable':
> | linux-2.6.20-rc4/include/linux/uaccess.h:33: error: dereferencing pointer to incomplete type
Ouch. However, I think your patch is bogus.
You're fixing somethign that doesn't need fixing: <linux/uaccess.h>
already includes <linux/preempt.h> for the preemption functions.
The REAL problem seems to be that the m68k preempt.h (or rather, to be
exact, asm/thread_info.h) doesn't do things right, and while it exposes
"inc_preempt_count()", it doesn't expose enough information to actually
use it.
I think your "current_thread_info()" is broken.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists