Index: mmnommu/slab.c =================================================================== RCS file: /var/cvs/uClinux-2.4.x/mmnommu/slab.c,v retrieving revision 1.14 diff -u -r1.14 slab.c --- mmnommu/slab.c 2002/04/24 00:51:16 1.14 +++ mmnommu/slab.c 2002/06/19 04:36:34 @@ -75,6 +75,12 @@ #include #include + +extern unsigned long __get_contiguous_pages(unsigned int gfp_mask, + unsigned long num, unsigned int align_order); +extern void free_contiguous_pages(unsigned long addr, unsigned int num); + + /* * DEBUG - 1 for kmem_cache_create() to honour; SLAB_DEBUG_INITIAL, * SLAB_RED_ZONE & SLAB_POISON. @@ -1571,7 +1577,7 @@ if (size >= PAGE_SIZE) { unsigned long addr; addr = __get_contiguous_pages(flags, (size+PAGE_SIZE-1)/PAGE_SIZE, 0); - return(addr); + return (void *)addr; } #endif @@ -1629,7 +1635,8 @@ if (objp != page_address(p)) BUG(); if ((p->index & ~0xffff) == 0xa1c20000) - free_contiguous_pages(objp, p->index & 0xffff); + free_contiguous_pages((unsigned long)objp, + p->index & 0xffff); else BUG(); local_irq_restore(flags);