Patch to get swap_token working without CONFIG_SWAP
Subsystems (2)
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
#
Signed-off-by Holger Schurig <[email protected]>
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++;