Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760257AbYBKWod (ORCPT ); Mon, 11 Feb 2008 17:44:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755412AbYBKWoW (ORCPT ); Mon, 11 Feb 2008 17:44:22 -0500 Received: from relay1.sgi.com ([192.48.171.29]:38069 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754806AbYBKWoV (ORCPT ); Mon, 11 Feb 2008 17:44:21 -0500 Date: Mon, 11 Feb 2008 14:44:21 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Matt Mackall cc: Pekka J Enberg , jdike@addtoit.com, blaisorblade@yahoo.it, linux-kernel@vger.kernel.org Subject: Re: [PATCH] slob: fix linking for user mode linux In-Reply-To: <1202769569.12383.49.camel@cinder.waste.org> Message-ID: References: <1202769569.12383.49.camel@cinder.waste.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 37 On Mon, 11 Feb 2008, Matt Mackall wrote: > Can someone explain why the magic is needed (and preferably capture it > in a comment somewhere sensible)? I took a peek at this and have no idea > what's going on. 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 * 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__ */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/