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>] [day] [month] [year] [list]
Date:	Mon, 20 Nov 2006 03:24:15 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	sct@...hat.com, akpm@...l.org
Cc:	linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [RFC: 2.6 patch] make fs/jbd/transaction.c:__journal_temp_unlink_buffer() static

This patch makes the needlessly global __journal_temp_unlink_buffer() 
static.

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

---

 fs/jbd/transaction.c |    4 +++-
 include/linux/jbd.h  |    1 -
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.19-rc5-mm2/include/linux/jbd.h.old	2006-11-20 01:46:09.000000000 +0100
+++ linux-2.6.19-rc5-mm2/include/linux/jbd.h	2006-11-20 01:46:23.000000000 +0100
@@ -839,7 +839,6 @@
  */
 
 /* Filing buffers */
-extern void __journal_temp_unlink_buffer(struct journal_head *jh);
 extern void journal_unfile_buffer(journal_t *, struct journal_head *);
 extern void __journal_unfile_buffer(struct journal_head *);
 extern void __journal_refile_buffer(struct journal_head *);
--- linux-2.6.19-rc5-mm2/fs/jbd/transaction.c.old	2006-11-20 01:46:29.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/jbd/transaction.c	2006-11-20 01:46:45.000000000 +0100
@@ -27,6 +27,8 @@
 #include <linux/mm.h>
 #include <linux/highmem.h>
 
+static void __journal_temp_unlink_buffer(struct journal_head *jh);
+
 /*
  * get_transaction: obtain a new transaction_t object.
  *
@@ -1499,7 +1501,7 @@
  *
  * Called under j_list_lock.  The journal may not be locked.
  */
-void __journal_temp_unlink_buffer(struct journal_head *jh)
+static void __journal_temp_unlink_buffer(struct journal_head *jh)
 {
 	struct journal_head **list = NULL;
 	transaction_t *transaction;

-
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