Skip to contentSkip to conversation

Patch to get swap_token working without CONFIG_SWAP

PATCH Holger Schurig 1 participant 1 message Dec 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Some embedded devices won't have CONFIG_SWAP defined, this breaks rmap.c near line 386. This fixes it:

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

mm/rmap.c renamed from mm/rmap.c~fix-rmapswap +2 -0
@@ -395,8 +395,10 @@
 {
        int referenced = 0;
 
+#ifdef CONFIG_SWAP
        if (!swap_token_default_timeout)
                ignore_token = 1;
+#endif
 
        if (page_test_and_clear_young(page))
                referenced++;