✗ CI.checkpatch: warning for Migrate on fault for devi ce pages (rev5)
Patchwork <[email protected]> Tue, 04 Aug 2026 04:35:19 -0000
| Newsgroups | org.freedesktop.lists.intel-xe |
|---|---|
| Message-ID | <178581811906.15902.9754713928126705300@61270ab9df2a> |
== Series Details == Series: Migrate on fault for device pages (rev5) URL : https://patchwork.freedesktop.org/series/165953/ State : warning == Summary == + KERNEL=/kernel + git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'... warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/ + git -C mt rev-list -n1 origin/master 061140b9bc586ae7f40abc1249c97e1cc72d1b9d + cd /kernel + git config --global --add safe.directory /kernel + git log -n1 commit ab5660e8c8f1d0d40b49cebb4cb0a8688fe63c99 Author: Mika Penttilä <[email protected]> Date: Tue Aug 4 07:26:31 2026 +0300 lib/test_hmm: add a new testcase for the migrate on fault Enhance the hmm test driver (lib/test_hmm) with migrate on fault case. Cc: David Hildenbrand <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Leon Romanovsky <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Zi Yan <[email protected]> Cc: Matthew Brost <[email protected]> Signed-off-by: Marco Pagani <[email protected]> Signed-off-by: Mika Penttilä <[email protected]> + /mt/dim checkpatch c2d24e2eda55d74743f0d99a98805bf0b596beef drm-intel 0c97467f0a59 mm/Kconfig: changes for migrate on fault for device pages 458472e638bc mm: add helper to convert HMM pfn to migrate pfn -:174: CHECK:BRACES: Blank lines aren't necessary before a close brace '}' #174: FILE: mm/migrate_device.c:1543: + +} total: 0 errors, 0 warnings, 1 checks, 132 lines checked ee87727a8a18 mm/hmm: preparations for HMM to participate in migration -:158: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'hmm_vma_walk->vma != walk->vma' #158: FILE: mm/hmm.c:412: + if (hmm_vma_walk->vma && (hmm_vma_walk->vma != walk->vma)) -:180: CHECK:BRACES: Blank lines aren't necessary after an open brace '{' #180: FILE: mm/hmm.c:434: +{ + total: 0 errors, 0 warnings, 2 checks, 203 lines checked e6c254b94143 mm/hmm: do the plumbing for HMM to participate in migration -:52: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #52: FILE: mm/hmm.c:56: + spinlock_t *ptl; -:55: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'locked' may be better as '(locked)' to avoid precedence issues #55: FILE: mm/hmm.c:59: +#define HMM_ASSERT_PTE_LOCKED(hmm_vma_walk, locked) \ + WARN_ON_ONCE((hmm_vma_walk)->ptelocked != locked) -:58: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'locked' may be better as '(locked)' to avoid precedence issues #58: FILE: mm/hmm.c:62: +#define HMM_ASSERT_PMD_LOCKED(hmm_vma_walk, locked) \ + WARN_ON_ONCE((hmm_vma_walk)->pmdlocked != locked) -:61: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'hmm_vma_walk' - possible side-effects? #61: FILE: mm/hmm.c:65: +#define HMM_ASSERT_UNLOCKED(hmm_vma_walk) \ + WARN_ON_ONCE((hmm_vma_walk)->ptelocked || \ + (hmm_vma_walk)->pmdlocked) -:92: CHECK:SPACING: spaces preferred around that '-' (ctx:VxV) #92: FILE: mm/hmm.c:101: + end-addr == HPAGE_PMD_SIZE) { ^ -:216: CHECK:BRACES: braces {} should be used on all arms of this statement #216: FILE: mm/hmm.c:461: + if (softleaf_is_device_private(entry)) { [...] else [...] -:334: CHECK:BRACES: braces {} should be used on all arms of this statement #334: FILE: mm/hmm.c:622: + if (minfo) { [...] + } else [...] -:338: CHECK:BRACES: Unbalanced braces around else statement #338: FILE: mm/hmm.c:626: + } else -:455: CHECK:BRACES: Blank lines aren't necessary before a close brace '}' #455: FILE: mm/hmm.c:721: + } total: 0 errors, 0 warnings, 9 checks, 489 lines checked f5b5b055813f mm/hmm: implement folio split for migrate needs in HMM pagewalk -:39: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #39: FILE: mm/hmm.c:518: + spinlock_t *ptl; total: 0 errors, 0 warnings, 1 checks, 54 lines checked 1c0d1db6f786 mm/hmm: migrate collection in HMM pagewalk - pte level cfd1ec6826ca mm/hmm: migrate collection in HMM pagewalk - pmd level e93563a5a5f2 mm/hmm: add lazy MMU mode support for migration in HMM pagewalk 1aa011a67173 mm/hmm: implement rollback for device page migration in HMM pagewalk -:163: CHECK:BRACES: Blank lines aren't necessary before a close brace '}' #163: FILE: mm/hmm.c:603: + + } total: 0 errors, 0 warnings, 1 checks, 164 lines checked 9b5465dd5e41 mm: enable device page migration from HMM pagewalk ab5660e8c8f1 lib/test_hmm: add a new testcase for the migrate on fault -:176: CHECK:LINE_SPACING: Please don't use multiple blank lines #176: FILE: lib/test_hmm.c:1395: + + -:249: CHECK:LINE_SPACING: Please don't use multiple blank lines #249: FILE: tools/testing/selftests/mm/hmm-tests.c:1000: + total: 0 errors, 0 warnings, 2 checks, 257 lines checked