Skip to contentSkip to conversation

mm-mremap-fix-build_bug_on-error-in-get_extent.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/mremap: fix BUILD_BUG_ON() error in get_extent
has been removed from the -mm tree. Its filename was
mm-mremap-fix-build_bug_on-error-in-get_extent.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: mm/mremap: fix BUILD_BUG_ON() error in get_extent

clang can't evaluate this function argument at compile time when the function is not inlined, which leads to a link time failure:

ld.lld: error: undefined symbol: __compiletime_assert_414

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by mremap.c
mremap.o:(get_extent) in archive mm/built-in.a

Mark the function as __always_inline to avoid it.

Fixes 9ad9718bfa41 ("mm/mremap: calculate extent in one place")
Cc Kirill A. Shutemov" <[email protected]>
Cc Wei Yang <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Dmitry Safonov <[email protected]>
Cc Brian Geffon <[email protected]>

---

 mm/mremap.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
mm/mremap.c renamed from mm/mremap.c~mm-mremap-fix-build_bug_on-error-in-get_extent +3 -2
@@ -336,8 +336,9 @@ enum pgt_entry {
  * valid. Else returns a smaller extent bounded by the end of the source and
  * destination pgt_entry.
  */
-static unsigned long get_extent(enum pgt_entry entry, unsigned long old_addr,
-			unsigned long old_end, unsigned long new_addr)
+static __always_inline unsigned long get_extent(enum pgt_entry entry,
+			unsigned long old_addr, unsigned long old_end,
+			unsigned long new_addr)
 {
 	unsigned long next, extent, mask, size;
 

_

Patches currently in -mm which might be from [email protected] are

kasan-add-match-all-tag-tests-fix.patch