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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Monday, February 11, 2008 - 3:44 pm

On Mon, 11 Feb 2008, Matt Mackall wrote:


UML defined its own external __kmalloc and things. Isnt there some other 
way to fix it? I guess including slab.h is not possible here?


/*
 * Copyright (C) 2005 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
 * Licensed under the GPL
 */

#ifndef __UM_MALLOC_H__
#define __UM_MALLOC_H__

#include "kern_constants.h"

extern void *__kmalloc(int size, int flags);
static inline void *kmalloc(int size, int flags)
{
        return __kmalloc(size, flags);
}

extern void kfree(const void *ptr);

extern void *vmalloc(unsigned long size);
extern void vfree(void *ptr);

#endif /* __UM_MALLOC_H__ */
--
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, 3:32 pm)
Re: [PATCH] slob: fix linking for user mode linux, Matt Mackall, (Mon Feb 11, 3:39 pm)
Re: [PATCH] slob: fix linking for user mode linux, Christoph Lameter, (Mon Feb 11, 3:44 pm)
Re: [PATCH] slob: fix linking for user mode linux, Jeff Dike, (Mon Feb 11, 4:32 pm)
Re: [PATCH] slob: fix linking for user mode linux, Pekka Enberg, (Mon Feb 11, 11:23 pm)