linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / m68k / sun3 / sun3dvma.c
index 6c26522..f04a1d2 100644 (file)
@@ -6,6 +6,7 @@
  * Contains common routines for sun3/sun3x DVMA management.
  */
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/list.h>
@@ -118,7 +119,8 @@ static inline int refill(void)
                if(hole->end == prev->start) {
                        hole->size += prev->size;
                        hole->end = prev->end;
-                       list_move(&(prev->list), &hole_cache);
+                       list_del(&(prev->list));
+                       list_add(&(prev->list), &hole_cache);
                        ret++;
                }
 
@@ -180,7 +182,8 @@ static inline unsigned long get_baddr(int len, unsigned long align)
 #endif
                        return hole->end;
                } else if(hole->size == newlen) {
-                       list_move(&(hole->list), &hole_cache);
+                       list_del(&(hole->list));
+                       list_add(&(hole->list), &hole_cache);
                        dvma_entry_use(hole->start) = newlen;
 #ifdef DVMA_DEBUG
                        dvma_allocs++;