Re: [PATCH] slob: fix linking for user mode linux

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Matt Mackall <mpm@...>, Pekka J Enberg <penberg@...>, <blaisorblade@...>, <linux-kernel@...>
Date: Monday, February 11, 2008 - 7:32 pm

On Mon, Feb 11, 2008 at 02:44:21PM -0800, Christoph Lameter wrote:

This is definitely dubious code on my part and I wouldn't support
Pekka's patch unless you're going to uninline __kmalloc for some
other reason.

The reason for this is that part of UML is userspace code, and thus
can't use kernel headers.  However, they do need some kernel
interfaces in some form.  That form has traditionally been little
wrappers in the kernel side of UML which just call the kernel
interface.

In this case, there used to be um_kmalloc, which just called kmalloc.
I've been trying to get rid of these stupid little helpers for a
while, and this is what I ended up with for kmalloc.

It would be an annoyance to reintroduce um_kmalloc, but that might be
the best thing to do here.

				Jeff

-- 
Work email - jdike at linux dot intel dot com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] slob: fix linking for user mode linux, Pekka J Enberg, (Mon Feb 11, 6:32 pm)
Re: [PATCH] slob: fix linking for user mode linux, Matt Mackall, (Mon Feb 11, 6:39 pm)
Re: [PATCH] slob: fix linking for user mode linux, Christoph Lameter, (Mon Feb 11, 6:44 pm)
Re: [PATCH] slob: fix linking for user mode linux, Jeff Dike, (Mon Feb 11, 7:32 pm)
Re: [PATCH] slob: fix linking for user mode linux, Pekka Enberg, (Tue Feb 12, 2:23 am)