maple_tree-mte_set_full-and-mte_clear_full-clang-analyzer-clean-up.patch removed from -mm tree
The quilt patch titled
Subject: maple_tree: mte_set_full() and mte_clear_full() clang-analyzer clean up
has been removed from the -mm tree. Its filename was
maple_tree-mte_set_full-and-mte_clear_full-clang-analyzer-clean-up.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Liam Howlett <[email protected]>
Subject: maple_tree: mte_set_full() and mte_clear_full() clang-analyzer clean up
Date: Fri, 28 Oct 2022 14:45:34 +0000
mte_set_full() and mte_clear_full() were incorrectly setting a pointer to a value without returning a result. Fix this by returning the modified pointer to be use as necessary. Also add a third function to return if the bit is set or not.
---
lib/maple_tree.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-mte_set_full-and-mte_clear_full-clang-analyzer-clean-up +9 -4
@@ -323,14 +323,19 @@ static inline void *mte_safe_root(constreturn (void *)((unsigned long )node & ~MAPLE_ROOT_NODE ); } -static inline void mte_set_full (const struct maple_enode *node) +static inline void *mte_set_full (const struct maple_enode *node) { - node = (void *)((unsigned long )node & ~MAPLE_ENODE_NULL ); +return (void *)((unsigned long )node & ~MAPLE_ENODE_NULL ); } -static inline void mte_clear_full (const struct maple_enode *node) +static inline void *mte_clear_full (const struct maple_enode *node) { - node = (void *)((unsigned long )node |MAPLE_ENODE_NULL ); +return (void *)((unsigned long )node |MAPLE_ENODE_NULL ); +} + +static inline bool mte_has_null (const struct maple_enode *node) +{ +return (unsigned long )node &MAPLE_ENODE_NULL ; }static inline bool ma_is_root (struct maple_node *node)
_
Patches currently in -mm which might be from [email protected] are
maple_tree-fix-mas_find_rev-comment.patch maple_tree-update-copyright-dates-for-test-code.patch