lkml.org 
[lkml]   [2002]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.5.3 missing <linux/malloc.h>
On Jan 30, 2002  14:28 -0800, David Dyck wrote:
> Haven't seen this posted yet, so I'm surprised to report that
> several 2.5.3 source files
>
> arch/arm/mach-clps711x/dma.c
> drivers/base/core.c
> drivers/base/fs.c
> drivers/video/neofb.c
>
>
> try to include linux/malloc.h
> but there is no file in the include directory by that name.
>
> I worked around the problem by copying an older linux/malloc.h:
>
> #ifndef _LINUX_MALLOC_H
> #define _LINUX_MALLOC_H
>
> #include <linux/slab.h>
> #endif /* _LINUX_MALLOC_H */

So, why not just change the above files to include <linux/slab.h>
instead?

> and I've noticed that many source files have
> #include <linux/slab.h> /* kmalloc(), kfree() */
> instead of trying to include linux/malloc.h

That's because they have been updated, and the other ones have not.
Don't ask me _why_ it was changed that way, but it was.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

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

\
 
 \ /
  Last update: 2005-03-22 13:16    [W:0.038 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site