X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fm68k%2Fsun3%2Fsun3dvma.c;h=f04a1d25f1a25fea5d824f343e661c0a8006e256;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=6c265222cbcdcac80cdc3cc139c6029ce594ab14;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/m68k/sun3/sun3dvma.c b/arch/m68k/sun3/sun3dvma.c index 6c265222c..f04a1d25f 100644 --- a/arch/m68k/sun3/sun3dvma.c +++ b/arch/m68k/sun3/sun3dvma.c @@ -6,6 +6,7 @@ * Contains common routines for sun3/sun3x DVMA management. */ +#include #include #include #include @@ -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++;