+ mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix.patch added to mm-new branch
Andrew Morton <[email protected]>
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The patch titled
Subject: mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix
has been added to the -mm mm-new branch. Its filename is
mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix
Date: Tue Aug 11 05:23:28 PM PDT 2026
WARN_ON_ONCE() if the handler didn't set ->locked, per Stanislav
Link: https://lore.kernel.org/anu1N-DOnQwxO1kF@skinsburskii
Cc: David Hildenbrand <[email protected]>
Cc: kernel test robot <[email protected]>
Cc: Stanislav Kinsburskii <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
mm/hmm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/mm/hmm.c~mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix
+++ a/mm/hmm.c
@@ -670,8 +670,10 @@ static int hmm_do_fault(struct mm_struct
ret = handle_mm_fault(vma, addr, fault_flags, NULL);
if (ret & (VM_FAULT_COMPLETED | VM_FAULT_RETRY)) {
- if (hmm_vma_walk->locked) /* needed by sparse */
+ if (hmm_vma_walk->locked) /* needed by sparse */
*hmm_vma_walk->locked = false;
+ else
+ WARN_ON_ONCE(1); /* broken fault handler */
return HMM_FAULT_UNLOCKED;
}
_
Patches currently in -mm which might be from [email protected] are
mm-provide-vma_is_cow_mapping-and-remove-is_cow_mapping-fix.patch
tools-testing-selftests-mm-test-anonymous-page-offset-merge-behaviour-fix.patch
mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix.patch
selftests-mm-use-pattern-matching-in-gitignore-fix.patch
alloc_tag-add-ioctl-to-proc-allocinfo-fix.patch
selftests-mm-fix-soft-dirty-kselftest-supported-check-fix.patch
mm-hmmc-hmm_do_fault-suppress-sparse-warning.patch
mm-hmmc-hmm_do_fault-suppress-sparse-warning-fix.patch
lib-kconfigdebug-make-debug_force_weak_per_cpu-depend-on-s390alpha.patch
drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch