[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] vmlist_lock error



Hi,

The recent update to 2.4.29 has introduced a compile error that must 
surely exist for all NOMMU targets.

In include/linux/vmalloc.h, the declaration of vmlist_lock is inside an 
#ifndef NO_MM conditional.  The variable is declared properly in 
mmnommu/vmalloc.c, however its absence from vmalloc.h causes the 
compilation of fs/proc/kcore.c to fail.

The attached patch adds the definition of vmlist_lock to 
include/linux/vmalloc.h in the NOMMU conditional.  Greg/David, you OK 
for me to commit this?  I'm not sure how you could be building NOMMU 
kernels without it! :)

Regards,

John

--- /opt/src/uClinux-2.4.x/include/linux/vmalloc.h      2004-07-08 
16:08:37.000000000 +1000
+++ linux-2.4.x/include/linux/vmalloc.h 2005-02-14 16:17:01.000000000 +1000
@@ -69,6 +69,12 @@

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