Btrfs: make things static and include the right headers

Shut up various sparse warnings about symbols that should be either
static or have their declarations in scope.

Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Christoph Hellwig
2008-12-02 09:54:17 -05:00
committed by Chris Mason
parent 1ffa4f426c
commit b2950863c6
13 changed files with 68 additions and 67 deletions

View File

@@ -217,7 +217,7 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans,
* this uses that block instead of allocating a new one. btrfs_alloc_reserved_extent
* is used to finish the allocation.
*/
int noinline __btrfs_cow_block(struct btrfs_trans_handle *trans,
static int noinline __btrfs_cow_block(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct extent_buffer *buf,
struct extent_buffer *parent, int parent_slot,