From: Jesper Juhl <juhl-lkml@dif.dk>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fix mm/rmap.c build failure if CONFIG_SWAP is not defined (2.6.10-rc3-bk16)
Date: Fri, 24 Dec 2004 00:42:28 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.61.0412240037211.3504@dragon.hygekrogen.localhost> (raw)
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. The patch below just
makes the small bit that uses swap_token_default_timeout be conditionally
build depending on CONFIG_SWAP being defined or not, but I have no idea if
this is the proper way to fix this (it does allow it to build though).
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
diff -up linux-2.6.10-rc3-bk16-orig/mm/rmap.c linux-2.6.10-rc3-bk16/mm/rmap.c
--- linux-2.6.10-rc3-bk16-orig/mm/rmap.c 2004-12-23 23:26:50.000000000 +0100
+++ linux-2.6.10-rc3-bk16/mm/rmap.c 2004-12-24 00:36:01.000000000 +0100
@@ -395,9 +395,10 @@ int page_referenced(struct page *page, i
{
int referenced = 0;
+#ifdef CONFIG_SWAP
if (!swap_token_default_timeout)
ignore_token = 1;
-
+#endif
if (page_test_and_clear_young(page))
referenced++;
next reply other threads:[~2004-12-23 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-23 23:42 Jesper Juhl [this message]
2004-12-24 0:25 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0412240037211.3504@dragon.hygekrogen.localhost \
--to=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®