diff options
author | Christian Hesse <list@eworm.de> | 2007-12-11 09:25:06 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 17636e03f42a1a42fed3834859de4702bd655fd1 (patch) | |
tree | 3a93f7c2f7c2f8e3d3c8c08426a0f3752de4c888 | |
parent | 9691975dd663b255fa52404dc7de4b18892bf244 (diff) |
Btrfs: section mismatch warnings
--Boundary-00=_CcOWHFYK4T+JwSj
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello everybody,
compiling btrfs into the kernel results in section mismatch warnings. __exit
functions are called where they are not allowed to. The attached patch fixes
this for me. Not sure if it is correct though.
Signed-off-by: Christian Hesse <mail@earthworm.de>
--
Regards,
Chris
--Boundary-00=_CcOWHFYK4T+JwSj
Content-Type: text/x-diff; charset="iso-8859-1";
name="btrfs-section_mismatches.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="btrfs-section_mismatches.patch"
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r-- | fs/btrfs/extent_map.c | 2 | ||||
-rw-r--r-- | fs/btrfs/extent_map.h | 2 | ||||
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 06e437723dc3..8326a18413ff 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -69,7 +69,7 @@ free_map_cache: | |||
69 | return -ENOMEM; | 69 | return -ENOMEM; |
70 | } | 70 | } |
71 | 71 | ||
72 | void __exit extent_map_exit(void) | 72 | void extent_map_exit(void) |
73 | { | 73 | { |
74 | struct extent_state *state; | 74 | struct extent_state *state; |
75 | 75 | ||
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 2ffc0c76338c..6e572d3e8924 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -112,7 +112,7 @@ void free_extent_map(struct extent_map *em); | |||
112 | int extent_read_full_page(struct extent_map_tree *tree, struct page *page, | 112 | int extent_read_full_page(struct extent_map_tree *tree, struct page *page, |
113 | get_extent_t *get_extent); | 113 | get_extent_t *get_extent); |
114 | int __init extent_map_init(void); | 114 | int __init extent_map_init(void); |
115 | void __exit extent_map_exit(void); | 115 | void extent_map_exit(void); |
116 | 116 | ||
117 | u64 count_range_bits(struct extent_map_tree *tree, | 117 | u64 count_range_bits(struct extent_map_tree *tree, |
118 | u64 *start, u64 max_bytes, unsigned long bits); | 118 | u64 *start, u64 max_bytes, unsigned long bits); |
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 4af1c0dab7f8..0229e69bd2ff 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -666,7 +666,7 @@ void __init btrfs_init_transaction_sys(void) | |||
666 | trans_wq = create_workqueue("btrfs"); | 666 | trans_wq = create_workqueue("btrfs"); |
667 | } | 667 | } |
668 | 668 | ||
669 | void __exit btrfs_exit_transaction_sys(void) | 669 | void btrfs_exit_transaction_sys(void) |
670 | { | 670 | { |
671 | destroy_workqueue(trans_wq); | 671 | destroy_workqueue(trans_wq); |
672 | } | 672 | } |