summaryrefslogtreecommitdiff
path: root/fs/coda
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2024-04-03 08:28:32 +1100
committerChandan Babu R <chandanbabu@kernel.org>2024-04-22 12:51:43 +0530
commit76f011f7e659305daf8beba0986fd4a03b3e56f6 (patch)
tree5cbacf5b55588cb1015ca0c4e0bca99bec411f68 /fs/coda
parent27a7a9d903a0473cb763afa662c38debf6f65bfa (diff)
downloadlinux-76f011f7e659305daf8beba0986fd4a03b3e56f6.tar.gz
linux-76f011f7e659305daf8beba0986fd4a03b3e56f6.tar.bz2
linux-76f011f7e659305daf8beba0986fd4a03b3e56f6.zip
xfs: fix sparse warnings about unused interval tree functions
Sparse throws warnings about the interval tree functions that are defined and then not used in the scrub bitmap code: fs/xfs/scrub/bitmap.c:57:1: warning: unused function 'xbitmap64_tree_iter_next' [-Wunused-function] INTERVAL_TREE_DEFINE(struct xbitmap64_node, bn_rbnode, uint64_t, ^ ./include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE' ITSTATIC ITSTRUCT * \ ^ <scratch space>:3:1: note: expanded from here xbitmap64_tree_iter_next ^ fs/xfs/scrub/bitmap.c:331:1: warning: unused function 'xbitmap32_tree_iter_next' [-Wunused-function] INTERVAL_TREE_DEFINE(struct xbitmap32_node, bn_rbnode, uint32_t, ^ ./include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE' ITSTATIC ITSTRUCT * \ ^ <scratch space>:59:1: note: expanded from here xbitmap32_tree_iter_next Fix these by marking the functions created by the interval tree creation macro as __maybe_unused to suppress this warning. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/coda')
0 files changed, 0 insertions, 0 deletions