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]
Date:	Mon, 31 Mar 2008 02:28:24 +0300
From:	Adrian Bunk <bunk@...nel.org>
To:	dm-devel@...hat.com
Cc:	linux-kernel@...r.kernel.org
Subject: [2.6 patch] make dm_{,un}register_dirty_log_type() static

This patch makes the needlessly global dm_{,un}register_dirty_log_type() 
static.

Signed-off-by: Adrian Bunk <bunk@...nel.org>

---

 drivers/md/dm-log.c |    6 ++----
 drivers/md/dm-log.h |    3 ---
 2 files changed, 2 insertions(+), 7 deletions(-)

5d0ca5f52a1c756246411406890c10b2d5cdd081 diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c
index 2a74b21..0d65cc7 100644
--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -17,7 +17,7 @@
 static LIST_HEAD(_log_types);
 static DEFINE_SPINLOCK(_lock);
 
-int dm_register_dirty_log_type(struct dirty_log_type *type)
+static int dm_register_dirty_log_type(struct dirty_log_type *type)
 {
 	spin_lock(&_lock);
 	type->use_count = 0;
@@ -27,7 +27,7 @@ int dm_register_dirty_log_type(struct dirty_log_type *type)
 	return 0;
 }
 
-int dm_unregister_dirty_log_type(struct dirty_log_type *type)
+static int dm_unregister_dirty_log_type(struct dirty_log_type *type)
 {
 	spin_lock(&_lock);
 
@@ -782,7 +782,5 @@ void dm_dirty_log_exit(void)
 	dm_unregister_dirty_log_type(&_core_type);
 }
 
-EXPORT_SYMBOL(dm_register_dirty_log_type);
-EXPORT_SYMBOL(dm_unregister_dirty_log_type);
 EXPORT_SYMBOL(dm_create_dirty_log);
 EXPORT_SYMBOL(dm_destroy_dirty_log);
diff --git a/drivers/md/dm-log.h b/drivers/md/dm-log.h
index 3fae87e..c45fc25 100644
--- a/drivers/md/dm-log.h
+++ b/drivers/md/dm-log.h
@@ -110,9 +110,6 @@ struct dirty_log_type {
 		      char *result, unsigned int maxlen);
 };
 
-int dm_register_dirty_log_type(struct dirty_log_type *type);
-int dm_unregister_dirty_log_type(struct dirty_log_type *type);
-
 
 /*
  * Make sure you use these two functions, rather than calling

--
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