mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: linux-kernel@vger.kernel.org
Subject: Patch to get swap_token working without CONFIG_SWAP
Date: Wed, 22 Dec 2004 15:52:35 +0100	[thread overview]
Message-ID: <200412221552.35700.hs4233@mail.mn-solutions.de> (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
#

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

--- linux-2.6/mm/rmap.c~fix-rmapswap
+++ linux-2.6/mm/rmap.c
@@ -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++;

                 reply	other threads:[~2004-12-22 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200412221552.35700.hs4233@mail.mn-solutions.de \
    --to=hs4233@mail.mn-solutions.de \
    --cc=linux-kernel@vger.kernel.org \
    /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®