From: Qu Wenruo Date: Fri, 19 Dec 2014 06:13:10 +0000 (+0800) Subject: btrfs-progs: Remove a unused function root_gtp_mask(). X-Git-Tag: upstream/4.16.1~2509 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc42d7f1df4d6cf43ad73fb3f688819eede48cbf;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: Remove a unused function root_gtp_mask(). Fix the following clang warning when compiling btrfs-progs: radix-tree.c:78:21: warning: unused function 'root_gfp_mask' [-Wunused-function] static inline gfp_t root_gfp_mask(struct radix_tree_root *root) ^ 1 warning generated. Signed-off-by: Qu Wenruo Reviewed-by: Satoru Takeuchi Signed-off-by: David Sterba --- diff --git a/radix-tree.c b/radix-tree.c index 7457944..f259ab5 100644 --- a/radix-tree.c +++ b/radix-tree.c @@ -75,11 +75,6 @@ struct radix_tree_preload { }; static struct radix_tree_preload radix_tree_preloads = { 0, }; -static inline gfp_t root_gfp_mask(struct radix_tree_root *root) -{ - return root->gfp_mask & __GFP_BITS_MASK; -} - static int internal_nodes = 0; /* * This assumes that the caller has performed appropriate preallocation, and