lkml.org 
[lkml]   [2007]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[-mm patch] make mm/swap_prefetch.c:remove_from_swapped_list() static
remove_from_swapped_list() can become static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

include/linux/swap-prefetch.h | 5 -----
mm/swap_prefetch.c | 2 +-
2 files changed, 1 insertion(+), 6 deletions(-)

--- linux-2.6.22-rc4-mm2/include/linux/swap-prefetch.h.old 2007-06-12 02:14:51.000000000 +0200
+++ linux-2.6.22-rc4-mm2/include/linux/swap-prefetch.h 2007-06-12 02:14:59.000000000 +0200
@@ -33,7 +33,6 @@
}

extern void add_to_swapped_list(struct page *page);
-extern void remove_from_swapped_list(const unsigned long index);
extern void delay_swap_prefetch(void);
extern void prepare_swap_prefetch(void);

@@ -46,10 +45,6 @@
{
}

-static inline void remove_from_swapped_list(const unsigned long __unused)
-{
-}
-
static inline void delay_swap_prefetch(void)
{
}
--- linux-2.6.22-rc4-mm2/mm/swap_prefetch.c.old 2007-06-12 02:15:09.000000000 +0200
+++ linux-2.6.22-rc4-mm2/mm/swap_prefetch.c 2007-06-12 02:15:18.000000000 +0200
@@ -139,7 +139,7 @@
* look up the entry from the index without having to iterate over the whole
* list.
*/
-void remove_from_swapped_list(const unsigned long index)
+static void remove_from_swapped_list(const unsigned long index)
{
struct swapped_entry *entry;
unsigned long flags;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-12 13:15    [W:0.273 / U:5.432 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site