Re: [PATCH 1/3] mm: move the soft-dirty fallbacks up in pgtable.h
From: kernel test robot
Date: Wed Nov 25 2026 - 12:16:29 EST
Hi Shivank,
kernel test robot noticed the following build errors:
[auto build test ERROR on 98f6b507621822477db7ec7cef8519de0dd243c4]
url: https://github.com/intel-lab-lkp/linux/commits/Shivank-Garg/mm-move-the-soft-dirty-fallbacks-up-in-pgtable-h/20261125-133227
base: 98f6b507621822477db7ec7cef8519de0dd243c4
patch link: https://lore.kernel.org/r/20261125-b4-mm-soft-dirty-fixes-v1-1-538e3cdb618c%40amd.com
patch subject: [PATCH 1/3] mm: move the soft-dirty fallbacks up in pgtable.h
config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20261126/20261126003419.x9qXgaij-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126003419.x9qXgaij-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261126003419.x9qXgaij-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from include/linux/printk.h:6,
from include/asm-generic/bug.h:31,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:107,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:18,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/jump_label.h:243,
from include/linux/once.h:6,
from include/linux/prandom.h:12,
from kernel/sched/sched.h:8,
from kernel/sched/rq-offsets.c:5:
include/linux/mm.h: In function 'vm_flags_init':
>> include/linux/mm.h:972:26: error: implicit declaration of function 'pgtable_supports_soft_dirty' [-Wimplicit-function-declaration]
972 | VM_WARN_ON_ONCE(!pgtable_supports_soft_dirty() && (flags & VM_SOFTDIRTY));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:30:63: note: in definition of macro 'BUILD_BUG_ON_INVALID'
30 | #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
| ^
include/linux/mm.h:972:9: note: in expansion of macro 'VM_WARN_ON_ONCE'
972 | VM_WARN_ON_ONCE(!pgtable_supports_soft_dirty() && (flags & VM_SOFTDIRTY));
| ^~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:185: kernel/sched/rq-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1417: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/pgtable_supports_soft_dirty +972 include/linux/mm.h
027232da7c7c1c7 Kiryl Shutsemau 2018-07-26 967
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 968 /* Use when VMA is not part of the VMA tree and needs no locking */
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 969 static inline void vm_flags_init(struct vm_area_struct *vma,
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 970 vm_flags_t flags)
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 971 {
277a1ae3879a82a Chunyan Zhang 2025-11-13 @972 VM_WARN_ON_ONCE(!pgtable_supports_soft_dirty() && (flags & VM_SOFTDIRTY));
9ea35a25d51b130 Lorenzo Stoakes 2025-11-25 973 vma_flags_clear_all(&vma->flags);
9ea35a25d51b130 Lorenzo Stoakes 2025-11-25 974 vma_flags_overwrite_word(&vma->flags, flags);
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 975 }
bc292ab00f6c7a6 Suren Baghdasaryan 2023-01-26 976
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki