lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070612110752.GW3588@stusta.de>
Date:	Tue, 12 Jun 2007 13:07:52 +0200
From:	Adrian Bunk <bunk@...sta.de>
To:	Andrew Morton <akpm@...ux-foundation.org>,
	Con Kolivas <kernel@...ivas.org>
Cc:	linux-kernel@...r.kernel.org
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@...sta.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ