Re: [PATCH] fix mm/rmap.c build failure if CONFIG_SWAP is notdefined (2.6.10-rc3-bk16)

From: Andrew Morton
Date: Thu Dec 23 2004 - 19:22:50 EST

Jesper Juhl <juhl-lkml@xxxxxx> wrote:
> I just tried a allnoconfig build of 2.6.10-rc3-bk16, and it fails on
> mm/rmap.c since swap_token_default_timeout is not defined by
> include/linux/swap.h if CONFIG_SWAP is not defined.

yup. I have this queued up:

--- 25/include/linux/swap.h~fix-config_swap-n-build Thu Dec 23 14:34:08 2004
+++ 25-akpm/include/linux/swap.h Thu Dec 23 14:34:08 2004
@@ -269,6 +269,7 @@ static inline void put_swap_token(struct
#define move_from_swap_cache(p, i, m) 1
#define __delete_from_swap_cache(p) /*NOTHING*/
#define delete_from_swap_cache(p) /*NOTHING*/
+#define swap_token_default_timeout 0

static inline int remove_exclusive_swap_page(struct page *p)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at