Commit 39f8049cd49f ("mm: update coredump logic to correctly
use bitmap mm flags") added coredump-specific helpers for the
remaining masked mm-flags update users.That left __mm_flags_set_mask_bits_word() without any callers. This is a special-purpose helper that is unlikely to be useful for other purposes; best to remove it. Assisted-by: Codex:GPT-5.5 Signed-off-by: Kevin Brodsky <[email protected]> --- include/linux/mm_types.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index ae9bca4eda5c..b4129beb9c4a 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1432,18 +1432,6 @@ static inline unsigned long __mm_flags_get_word(const struct mm_struct *mm) return *__mm_flags_get_bitmap(mm); } -/* - * Update the first system word of mm flags ONLY, applying the specified mask to - * it, then setting all flags specified by bits. - */ -static inline void __mm_flags_set_mask_bits_word(struct mm_struct *mm, - unsigned long mask, unsigned long bits) -{ - unsigned long *bitmap = ACCESS_PRIVATE(&mm->flags, __mm_flags); - - set_mask_bits(bitmap, mask, bits); -} - #define MM_MT_FLAGS (MT_FLAGS_ALLOC_RANGE | MT_FLAGS_LOCK_EXTERN | \ MT_FLAGS_USE_RCU) extern struct mm_struct init_mm; -- 2.51.2
