Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm log: make dm_dirty_log init and exit static

dm_dirty_log_{init,exit}() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>

authored by

Adrian Bunk and committed by
Alasdair G Kergon
c8da2f8d 371b2e34

+2 -8
+2 -2
drivers/md/dm-log.c
··· 831 831 .status = disk_status, 832 832 }; 833 833 834 - int __init dm_dirty_log_init(void) 834 + static int __init dm_dirty_log_init(void) 835 835 { 836 836 int r; 837 837 ··· 848 848 return r; 849 849 } 850 850 851 - void __exit dm_dirty_log_exit(void) 851 + static void __exit dm_dirty_log_exit(void) 852 852 { 853 853 dm_dirty_log_type_unregister(&_disk_type); 854 854 dm_dirty_log_type_unregister(&_core_type);
-6
drivers/md/dm.h
··· 100 100 101 101 void dm_kobject_uevent(struct mapped_device *md); 102 102 103 - /* 104 - * Dirty log 105 - */ 106 - int dm_dirty_log_init(void); 107 - void dm_dirty_log_exit(void); 108 - 109 103 int dm_kcopyd_init(void); 110 104 void dm_kcopyd_exit(void); 111 105