linux-l: Problem (Bug) kernel linux-2.4.14

Juergen Rienaecker j.rienaecker at nexgo.de
Di Nov 6 20:53:25 CET 2001


Hallo !

Ich habe mir gerade den neuesten patch gezogen und kriege
beim Compilieren von loop.c für den neuen Kernel linux-2.4.14
die Warnung
    implicit declaration of function `deactivate_page'

in pach-2.4.14 finde ich für linux/mm/swap.c folgendes

<zitat>
-/**
- * (de)activate_page - move pages from/to active and inactive lists
- * @page: the page we want to move
- * @nolock - are we already holding the pagemap_lru_lock?
- *
- * Deactivate_page will move an active page to the right
- * inactive list, while activate_page will move a page back
- * from one of the inactive lists to the active list. If
- * called on a page which is not on any of the lists, the
- * page is left alone.
- */
-static inline void deactivate_page_nolock(struct page * page)
-{
-       if (PageActive(page)) {
-               del_page_from_active_list(page);
-               add_page_to_inactive_list(page);
-       }
-}
-
-void deactivate_page(struct page * page)
-{
-       spin_lock(&pagemap_lru_lock);
-       deactivate_page_nolock(page);
-       spin_unlock(&pagemap_lru_lock);
-}
-
</zitat>

d.h. man hat die Funktion deactivate_page verschwinden lassen

in loop.c wird sie aber noch verwendet
deshalb erhält man beim compilieren des Kernels die Warnung
loop.c: In function `lo_send':
loop.c:210: warning: implicit declaration of function `deactivate_page'

und bei make modules_install:
depmod: *** Unresolved symbols in
        /lib/modules/2.4.14/kernel/drivers/block/loop.o
depmod:         deactivate_page

Den Modul loop.o werde ich so bestimmt nicht laden können.

Frage an die Kernelhacker: ist das gesund ?

Kann man die beiden Zeilen in loop.c mit `deactivate_page'
einfach auskommentieren ?

Kann da jemand mit besseren Englischkenntnissen eine Bugmeldung
verfassen und weiterleiten.

Jürgen



Mehr Informationen über die Mailingliste linux-l