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-next>] [day] [month] [year] [list]
Message-ID: <20061120022428.GS31879@stusta.de>
Date:	Mon, 20 Nov 2006 03:24:28 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	mark.fasheh@...cle.com, kurt.hackel@...cle.com
Cc:	ocfs2-devel@....oracle.com, linux-kernel@...r.kernel.org
Subject: [2.6 patch] make ocfs2_create_new_lock() static

This patch makes the needlessly global ocfs2_create_new_lock() static.

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

---

 fs/ocfs2/dlmglue.c |    8 ++++----
 fs/ocfs2/dlmglue.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)

--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h.old	2006-11-20 02:04:48.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.h	2006-11-20 02:04:55.000000000 +0100
@@ -68,8 +68,6 @@
 				u64 parent, struct inode *inode);
 void ocfs2_lock_res_free(struct ocfs2_lock_res *res);
 int ocfs2_create_new_inode_locks(struct inode *inode);
-int ocfs2_create_new_lock(struct ocfs2_super *osb,
-			  struct ocfs2_lock_res *lockres, int ex, int local);
 int ocfs2_drop_inode_locks(struct inode *inode);
 int ocfs2_data_lock_full(struct inode *inode,
 			 int write,
--- linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c.old	2006-11-20 02:05:01.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ocfs2/dlmglue.c	2006-11-20 02:05:10.000000000 +0100
@@ -1063,10 +1063,10 @@
 	mlog_exit_void();
 }
 
-int ocfs2_create_new_lock(struct ocfs2_super *osb,
-			  struct ocfs2_lock_res *lockres,
-			  int ex,
-			  int local)
+static int ocfs2_create_new_lock(struct ocfs2_super *osb,
+				 struct ocfs2_lock_res *lockres,
+				 int ex,
+				 int local)
 {
 	int level =  ex ? LKM_EXMODE : LKM_PRMODE;
 	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