Re: PROBLEM: drivers/block/block.o - undefined referedce to'deactivate_page' when compiling 2.4.14

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sun Nov 11 2001 - 12:21:26 EST


On 11 Nov 2001, Peter Sozanski d'Alancaisez wrote:

> [1] drivers/block/block.o - undefined referedce to 'deactivate_page' when compiling 2.4.14
>
> [2] When compiling 2.4.14 with exactly the same config as my (operational) 2.4.12, make bxImage gets stuck on
> devices/block/block.o In function 'lo_send'
> devices/block/block.o .text+0x8f06 undefined reference to 'deactivate_page'
> devices/block/block.o .text+0x8f44 undefined reference to 'deactivate_page'
>...

This is a known bug.

The following patch fixes it:

--- linux-2.4.14-broken/drivers/block/loop.c Thu Oct 25 13:58:34 2001
+++ linux-2.4.14/drivers/block/loop.c Mon Nov 5 17:06:08 2001
@@ -207,7 +207,6 @@
                 index++;
                 pos += size;
                 UnlockPage(page);
- deactivate_page(page);
                 page_cache_release(page);
         }
         return 0;
@@ -218,7 +217,6 @@
         kunmap(page);
 unlock:
         UnlockPage(page);
- deactivate_page(page);
         page_cache_release(page);
 fail:
         return -1;

> Any ideas? Many thanks,
>
> Peter

cu
Adrian

-- 

Get my GPG key: finger bunk@debian.org | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:26 EST