You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.4 KiB

  1. diff --git a/btrfs.c b/btrfs.c
  2. index 2d39f2c..78c468d 100644
  3. --- a/btrfs.c
  4. +++ b/btrfs.c
  5. @@ -210,7 +210,7 @@ static int handle_global_options(int argc, char **argv)
  6. return shift;
  7. }
  8. -void handle_special_globals(int shift, int argc, char **argv)
  9. +static void handle_special_globals(int shift, int argc, char **argv)
  10. {
  11. int has_help = 0;
  12. int has_full = 0;
  13. diff --git a/extent-tree.c b/extent-tree.c
  14. index cd98633..8c9cdef 100644
  15. --- a/extent-tree.c
  16. +++ b/extent-tree.c
  17. @@ -3749,7 +3749,7 @@ static void __get_extent_size(struct btrfs_root *root, struct btrfs_path *path,
  18. * Return >0 for not found.
  19. * Return <0 for err
  20. */
  21. -int btrfs_search_overlap_extent(struct btrfs_root *root,
  22. +static int btrfs_search_overlap_extent(struct btrfs_root *root,
  23. struct btrfs_path *path, u64 bytenr, u64 len)
  24. {
  25. struct btrfs_key key;
  26. diff --git a/free-space-tree.c b/free-space-tree.c
  27. index 6641cdf..65d101f 100644
  28. --- a/free-space-tree.c
  29. +++ b/free-space-tree.c
  30. @@ -780,7 +780,7 @@ out:
  31. return ret;
  32. }
  33. -int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
  34. +static int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
  35. struct btrfs_block_group_cache *block_group,
  36. struct btrfs_path *path, u64 start, u64 size)
  37. {
  38. @@ -1420,7 +1420,7 @@ out:
  39. return ret;
  40. }
  41. -struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
  42. +static struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
  43. struct btrfs_fs_info *fs_info,
  44. u64 objectid)
  45. {
  46. diff --git a/kernel-lib/bitops.h b/kernel-lib/bitops.h
  47. index b1fd6f5..4aadf91 100644
  48. --- a/kernel-lib/bitops.h
  49. +++ b/kernel-lib/bitops.h
  50. @@ -178,9 +178,9 @@ static inline unsigned long find_next_zero_bit(const unsigned long *addr,
  51. static inline unsigned long ext2_swab(const unsigned long y)
  52. {
  53. #if BITS_PER_LONG == 64
  54. - return (unsigned long) bswap64((u64) y);
  55. + return (unsigned long) bswap_64((u64) y);
  56. #elif BITS_PER_LONG == 32
  57. - return (unsigned long) bswap32((u32) y);
  58. + return (unsigned long) bswap_32((u32) y);
  59. #else
  60. #error BITS_PER_LONG not defined
  61. #endif
  62. @@ -218,14 +218,14 @@ static inline unsigned long _find_next_bit_le(const unsigned long *addr1,
  63. return min(start + __ffs(ext2_swab(tmp)), nbits);
  64. }
  65. -unsigned long find_next_zero_bit_le(const void *addr, unsigned long size,
  66. +static unsigned long find_next_zero_bit_le(const void *addr, unsigned long size,
  67. unsigned long offset)
  68. {
  69. return _find_next_bit_le(addr, NULL, size, offset, ~0UL);
  70. }
  71. -unsigned long find_next_bit_le(const void *addr, unsigned long size,
  72. +static unsigned long find_next_bit_le(const void *addr, unsigned long size,
  73. unsigned long offset)
  74. {
  75. return _find_next_bit_le(addr, NULL, size, offset, 0UL);
  76. diff --git a/kernel-lib/rbtree.h b/kernel-lib/rbtree.h
  77. index 47b662a..ebb4145 100644
  78. --- a/kernel-lib/rbtree.h
  79. +++ b/kernel-lib/rbtree.h
  80. @@ -52,7 +52,7 @@ struct rb_root {
  81. #define rb_parent(r) ((struct rb_node *)((r)->__rb_parent_color & ~3))
  82. -#define RB_ROOT (struct rb_root) { NULL, }
  83. +#define RB_ROOT (struct rb_root) {}
  84. #define rb_entry(ptr, type, member) container_of(ptr, type, member)
  85. #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL)
  86. diff --git a/utils.h b/utils.h
  87. index b6c00cf..7c5eb79 100644
  88. --- a/utils.h
  89. +++ b/utils.h
  90. @@ -29,6 +29,7 @@
  91. #include "sizes.h"
  92. #include "messages.h"
  93. #include "ioctl.h"
  94. +#include "fsfeatures.h"
  95. #define BTRFS_SCAN_MOUNTED (1ULL << 0)
  96. #define BTRFS_SCAN_LBLKID (1ULL << 1)