Skip to contentSkip to conversation

Kernel 2.4.14 link error

DISCUSSION Richard 2 participants 2 messages Nov 7, 2001

lore
Share & tools
lore

Richard

author
#0 lore raw

This is my first nervous attempt at kernel stuff (sweat, panic...)

Kernel 2.4.14 does not link if loopback device is enabled. The link fails with unresolved extern reference "deactivate_page" in block.o

This function is called from drivers/block/loop.c and is located in in mm/swap.c for kernel 2.4.13 but not for 2.4.14.
I made a copy of loop.c commented out the references (2) to deactivate_page and compiled as a module, which seems to work just fine.

Hope this helps

#1 lore raw
Quoted 9 lines · Richard

This is my first nervous attempt at kernel stuff (sweat, panic...)

Kernel 2.4.14 does not link if loopback device is enabled. The link fails with unresolved extern reference "deactivate_page" in block.o

This function is called from drivers/block/loop.c and is located in in mm/swap.c for kernel 2.4.13 but not for 2.4.14.
I made a copy of loop.c commented out the references (2) to deactivate_page and compiled as a module, which seems to work just fine.

This is a known bug and you did the right thing to fix it.

Quoted 1 line

Hope this helps

cu
Adrian

Signature · 3 lines
Get my GPG key: finger [email protected] | gpg --import

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