mark internal functions static (fixed)
PATCH 1/1 mark internal functions static (fixed)
This didn't make it in before, so updating to 2.6.39-rc3 and resending:
Prevent needless exporting of internal functions from compilation units by marking them static.
--- fs/btrfs/ctree.c | 2 +- fs/btrfs/disk-io.c | 2 +- fs/btrfs/extent-tree.c | 4 ++-- fs/btrfs/inode.c | 2 +- fs/btrfs/ioctl.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
fs/btrfs/ctree.c +1 -1
@@ -74,7 +74,7 @@ noinline void btrfs_set_path_blocking(struct btrfs_path *p)* retake all the spinlocks in the path. You can safely use NULL * for held */ -noinline void btrfs_clear_path_blocking(struct btrfs_path *p, +static noinline void btrfs_clear_path_blocking(struct btrfs_path *p,struct extent_buffer *held) {int i;
fs/btrfs/disk-io.c +1 -1
@@ -2313,7 +2313,7 @@ static int write_dev_supers(struct btrfs_device *device,return errors < i ?0 :-1 ; } -int write_all_supers (struct btrfs_root *root,int max_mirrors) +static int write_all_supers (struct btrfs_root *root,int max_mirrors) {struct list_head *head;struct btrfs_device *dev;
fs/btrfs/extent-tree.c +2 -2
@@ -75,7 +75,7 @@ static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits)return (cache->flags & bits) == bits; } -void btrfs_get_block_group (struct btrfs_block_group_cache *cache) +static void btrfs_get_block_group (struct btrfs_block_group_cache *cache) {atomic_inc (&cache->count); }
@@ -3586,7 +3586,7 @@ static void block_rsv_add_bytes(struct btrfs_block_rsv *block_rsv,spin_unlock (&block_rsv->lock); } -void block_rsv_release_bytes (struct btrfs_block_rsv *block_rsv, +static void block_rsv_release_bytes (struct btrfs_block_rsv *block_rsv,struct btrfs_block_rsv *dest,u64 num_bytes) {struct btrfs_space_info *space_info = block_rsv->space_info;
fs/btrfs/inode.c +1 -1
@@ -5305,7 +5305,7 @@ out:return em; } -struct extent_map *btrfs_get_extent_fiemap (struct inode *inode,struct page *page, +static struct extent_map *btrfs_get_extent_fiemap (struct inode *inode,struct page *page,size_t pg_offset,u64 start,u64 len,int create) {
fs/btrfs/ioctl.c +1 -1
@@ -2281,7 +2281,7 @@ static void get_block_group_info(struct list_head *groups_list, } } -long btrfs_ioctl_space_info (struct btrfs_root *root,void __user *arg) +static long btrfs_ioctl_space_info (struct btrfs_root *root,void __user *arg) {struct btrfs_ioctl_space_args space_args;struct btrfs_ioctl_space_info space;
Signature · 1 line
1.7.1