public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs: fix build errors of extent_io.c
@ 2008-12-24  8:56 Ryusuke Konishi
  2009-01-05 15:47 ` Chris Mason
  0 siblings, 1 reply; 6+ messages in thread
From: Ryusuke Konishi @ 2008-12-24  8:56 UTC (permalink / raw)
  To: Chris Mason; +Cc: linux-btrfs, Ryusuke Konishi

Hi Chris,

I've started to read and try btrfs, and soon met the following build
errors.  The attached patch fixes the problem.

Could you check this?

Regards,
Ryusuke Konishi
--
Btrfs: fix build errors of extent_io.c

This will fix the following compile-time errors:

fs/btrfs/extent_io.c: At top level:
fs/btrfs/extent_io.c:815: error: __ksymtab_set_extent_bit causes a section type conflict
fs/btrfs/extent_io.c:815: error: __ksymtab_set_extent_bit causes a section type conflict
fs/btrfs/extent_io.c:156: error: __ksymtab_free_extent_state causes a section type conflict
fs/btrfs/extent_io.c:156: error: __ksymtab_free_extent_state causes a section type conflict
fs/btrfs/extent_io.c:137: error: __ksymtab_alloc_extent_state causes a section type conflict
fs/btrfs/extent_io.c:137: error: __ksymtab_alloc_extent_state causes a section type conflict
make[2]: *** [fs/btrfs/extent_io.o] Error 1
make[1]: *** [fs/btrfs] Error 2

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
---
 fs/btrfs/extent_io.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 25ce2d1..b6c69ef 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -112,7 +112,7 @@ void extent_io_tree_init(struct extent_io_tree *tree,
 }
 EXPORT_SYMBOL(extent_io_tree_init);
 
-static struct extent_state *alloc_extent_state(gfp_t mask)
+struct extent_state *alloc_extent_state(gfp_t mask)
 {
 	struct extent_state *state;
 #ifdef LEAK_DEBUG
@@ -136,7 +136,7 @@ static struct extent_state *alloc_extent_state(gfp_t mask)
 }
 EXPORT_SYMBOL(alloc_extent_state);
 
-static void free_extent_state(struct extent_state *state)
+void free_extent_state(struct extent_state *state)
 {
 	if (!state)
 		return;
@@ -661,7 +661,7 @@ static void set_state_bits(struct extent_io_tree *tree,
  * [start, end] is inclusive
  * This takes the tree lock.
  */
-static int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, int bits,
+int set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, int bits,
 		   int exclusive, u64 *failed_start, gfp_t mask)
 {
 	struct extent_state *state;
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-05 17:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-24  8:56 [PATCH] Btrfs: fix build errors of extent_io.c Ryusuke Konishi
2009-01-05 15:47 ` Chris Mason
2009-01-05 17:29   ` Ryusuke Konishi
2009-01-05 17:37     ` Christoph Hellwig
2009-01-05 17:39       ` Chris Mason
2009-01-05 17:48         ` Ryusuke Konishi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox