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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20070305014948.GC3441@stusta.de>
Date:	Mon, 5 Mar 2007 02:49:48 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	Eric Van Hensbergen <ericvh@...il.com>, rminnich@...l.gov,
	lucho@...kov.net
Cc:	v9fs-developer@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: [-mm patch] make struct v9fs_cached_file_operations static

This patch makes te needlessly global struct v9fs_cached_file_operations 
static.

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

---

 fs/9p/v9fs_vfs.h |    1 -
 fs/9p/vfs_file.c |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.21-rc2-mm1/fs/9p/v9fs_vfs.h.old	2007-03-04 22:02:54.000000000 +0100
+++ linux-2.6.21-rc2-mm1/fs/9p/v9fs_vfs.h	2007-03-04 22:03:00.000000000 +0100
@@ -40,7 +40,6 @@
 extern struct file_system_type v9fs_fs_type;
 extern const struct address_space_operations v9fs_addr_operations;
 extern const struct file_operations v9fs_file_operations;
-extern const struct file_operations v9fs_cached_file_operations;
 extern const struct file_operations v9fs_dir_operations;
 extern struct dentry_operations v9fs_dentry_operations;
 extern struct dentry_operations v9fs_cached_dentry_operations;
--- linux-2.6.21-rc2-mm1/fs/9p/vfs_file.c.old	2007-03-04 22:03:07.000000000 +0100
+++ linux-2.6.21-rc2-mm1/fs/9p/vfs_file.c	2007-03-04 22:03:57.000000000 +0100
@@ -42,6 +42,8 @@
 #include "v9fs_vfs.h"
 #include "fid.h"
 
+static const struct file_operations v9fs_cached_file_operations;
+
 /**
  * v9fs_file_open - open a file (or directory)
  * @inode: inode to be opened
@@ -245,7 +247,7 @@
 	return total;
 }
 
-const struct file_operations v9fs_cached_file_operations = {
+static const struct file_operations v9fs_cached_file_operations = {
 	.llseek = generic_file_llseek,
 	.read = do_sync_read,
 	.aio_read = generic_file_aio_read,

-
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