mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: torvalds <torvalds@osdl.org>
Subject: [PATCH] fix mm/memory for SWAP=n
Date: Tue, 7 Oct 2003 13:40:14 -0700	[thread overview]
Message-ID: <20031007134014.2aad9691.rddunlap@osdl.org> (raw)


Please apply to 2.6.0-test6-current.

--
~Randy


patch_name:	memory_noswap.patch
patch_version:	2003-10-07.13:49:54
author:		Randy.Dunlap <rddunlap@osdl.org>
description:	fix compile warning when CONFIG_SWAP=n
product:	Linux
product_versions: 2.6.0-test6-2003.10.07
diffstat:	=
 include/linux/swap.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


diff -Naurp ./include/linux/swap.h~noswap ./include/linux/swap.h
--- ./include/linux/swap.h~noswap	2003-10-07 13:12:15.000000000 -0700
+++ ./include/linux/swap.h	2003-10-07 13:40:52.000000000 -0700
@@ -261,12 +261,16 @@ extern spinlock_t swaplock;
 #define lookup_swap_cache(swp)			NULL
 #define valid_swaphandles(swp, off)		0
 #define can_share_swap_page(p)			0
-#define remove_exclusive_swap_page(p)		0
 #define move_to_swap_cache(p, swp)		1
 #define move_from_swap_cache(p, i, m)		1
 #define __delete_from_swap_cache(p)		/*NOTHING*/
 #define delete_from_swap_cache(p)		/*NOTHING*/
 
+static inline int remove_exclusive_swap_page(struct page *p)
+{
+	return 0;
+}
+
 static inline swp_entry_t get_swap_page(void)
 {
 	swp_entry_t entry;

                 reply	other threads:[~2003-10-07 20:48 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=20031007134014.2aad9691.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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®