mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix mm/memory for SWAP=n
@ 2003-10-07 20:40 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2003-10-07 20:40 UTC (permalink / raw)
  To: lkml; +Cc: torvalds


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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-07 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-07 20:40 [PATCH] fix mm/memory for SWAP=n Randy.Dunlap

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®