[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] kernel compilation error: 'vmlist_lock undeclared'
Hi David,
David Banas wrote:
> Hi All,
>
> Has anyone bumped into this error when compiling the kernel? It's occurring
> while make is operating in the './fs/proc' directory.
>
> kcore.c: In function `read_kcore':
> kcore.c:362: `vmlist_lock' undeclared (first use in this function)
You need to freshen your copy of linux-2.4.x/include/linux/vmalloc.h
from CVS, or apply the following trivial patch:
Regards,
John
Index: vmalloc.h
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/include/linux/vmalloc.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -B -w -p -r1.4 -r1.5
--- vmalloc.h 27 Aug 2003 03:13:47 -0000 1.4
+++ vmalloc.h 14 Feb 2005 06:32:51 -0000 1.5
@@ -69,6 +69,12 @@ extern struct vm_struct * vmlist;
#else /* NO_MM */
+/*
+ * vmlist_lock is a read-write spinlock that protects vmlist
+ * Used in mm/vmalloc.c (get_vm_area() and vfree()) and fs/proc/kcore.c.
+ */
+extern rwlock_t vmlist_lock;
+
extern void vfree(void * addr);
extern void *__vmalloc(unsigned long size, int gfp_mask, pgprot_t prot);
extern long vread(char *buf, char *addr, unsigned long count);
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/