Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update'
@ 2026-09-26 16:32 kernel test robot
  2026-09-27 20:31 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2026-09-26 16:32 UTC (permalink / raw)
  To: Anshuman Khandual
  Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
	Linux Memory Management List, mm-commits, Catalin Marinas

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   b4fc90c82982d98959af08b4320420bcfc01303b
commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update()
config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609270030.Y0QVBPmK-lkp@intel.com/

All errors (new ones prefixed by >>):

>> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
>> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
   aarch64-linux-ld: arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47':
>> mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update'
   aarch64-linux-ld: arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32':
>> hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update'
   aarch64-linux-ld: kernel/bpf/arena.o: in function `apply_range_set_cb':
>> arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update'
   aarch64-linux-ld: mm/gup.o: in function `follow_page_pte':
>> gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update'
   aarch64-linux-ld: mm/memory.o: in function `__set_ptes.isra.207':
>> memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
   aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update'
  2026-09-26 16:32 [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update' kernel test robot
@ 2026-09-27 20:31 ` Andrew Morton
  2026-09-28  4:42   ` Anshuman Khandual
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2026-09-27 20:31 UTC (permalink / raw)
  To: kernel test robot
  Cc: Anshuman Khandual, oe-kbuild-all, David Hildenbrand,
	Linux Memory Management List, mm-commits, Catalin Marinas

On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head:   b4fc90c82982d98959af08b4320420bcfc01303b
> commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update()
> config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 8.5.0

Thanks.  It works for me, but I'm using gcc-15.2.0.

> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/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@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202609270030.Y0QVBPmK-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
> >> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
>    aarch64-linux-ld: arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47':
> >> mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update'
>    aarch64-linux-ld: arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32':
> >> hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update'
>    aarch64-linux-ld: kernel/bpf/arena.o: in function `apply_range_set_cb':
> >> arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update'
>    aarch64-linux-ld: mm/gup.o: in function `follow_page_pte':
> >> gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update'
>    aarch64-linux-ld: mm/memory.o: in function `__set_ptes.isra.207':
> >> memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
>    aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update'
  2026-09-27 20:31 ` Andrew Morton
@ 2026-09-28  4:42   ` Anshuman Khandual
  2026-09-28  7:44     ` David Hildenbrand (Arm)
  0 siblings, 1 reply; 4+ messages in thread
From: Anshuman Khandual @ 2026-09-28  4:42 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
	Linux Memory Management List, mm-commits, Catalin Marinas

On Sun, Sep 27, 2026 at 01:31:00PM -0700, Andrew Morton wrote:
> On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <lkp@intel.com> wrote:
> 
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> > head:   b4fc90c82982d98959af08b4320420bcfc01303b
> > commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update()
> > config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/config)
> > compiler: aarch64-linux-gcc (GCC) 8.5.0
> 
> Thanks.  It works for me, but I'm using gcc-15.2.0.

Tried building this series with a cross compiler (gcc 14.3.1) and a native
compiler (15.2.0). The series builds successfully in both cases.

- Anshuman

> 
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/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@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202609270030.Y0QVBPmK-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> > 
> > >> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
> > >> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
> >    aarch64-linux-ld: arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47':
> > >> mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update'
> >    aarch64-linux-ld: arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32':
> > >> hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update'
> >    aarch64-linux-ld: kernel/bpf/arena.o: in function `apply_range_set_cb':
> > >> arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update'
> >    aarch64-linux-ld: mm/gup.o: in function `follow_page_pte':
> > >> gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update'
> >    aarch64-linux-ld: mm/memory.o: in function `__set_ptes.isra.207':
> > >> memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
> >    aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow
> > 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update'
  2026-09-28  4:42   ` Anshuman Khandual
@ 2026-09-28  7:44     ` David Hildenbrand (Arm)
  0 siblings, 0 replies; 4+ messages in thread
From: David Hildenbrand (Arm) @ 2026-09-28  7:44 UTC (permalink / raw)
  To: Anshuman Khandual, Andrew Morton
  Cc: kernel test robot, oe-kbuild-all, Linux Memory Management List,
	mm-commits, Catalin Marinas

On 9/28/26 06:42, Anshuman Khandual wrote:
> On Sun, Sep 27, 2026 at 01:31:00PM -0700, Andrew Morton wrote:
>> On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <lkp@intel.com> wrote:
>>
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
>>> head:   b4fc90c82982d98959af08b4320420bcfc01303b
>>> commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update()
>>> config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/202609270030.Y0QVBPmK-lkp@intel.com/config)
>>> compiler: aarch64-linux-gcc (GCC) 8.5.0
>>
>> Thanks.  It works for me, but I'm using gcc-15.2.0.
> 
> Tried building this series with a cross compiler (gcc 14.3.1) and a native
> compiler (15.2.0). The series builds successfully in both cases.

I'm getting the same problems building mm-next.

The following seems to fix it, which I will carry in for-next and for-test today.


From 448f146f16394713b28295236588ccab3a173827 Mon Sep 17 00:00:00 2001
From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: Mon, 28 Sep 2026 09:42:06 +0200
Subject: [PATCH] fixup: arm64/mm: move __check_safe_pte_update()

Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
---
 arch/arm64/mm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index e589fb00d1e3..7343ac9294f8 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -2392,6 +2392,7 @@ int arch_set_user_pkey_access(int pkey, unsigned long init_val)

 	return 0;
 }
+#endif

 /*
  * PTE bits configuration in the presence of hardware Dirty Bit Management
@@ -2440,4 +2441,3 @@ void __check_safe_pte_update(struct mm_struct *mm, pte_t *ptep, pte_t pte)
 		     __func__, pte_str_old, pte_str);
 }
 #endif /* CONFIG_DEBUG_VM */
-#endif
--
2.55.0

-- 
Cheers,

David


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-28  7:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-26 16:32 [akpm-mm:mm-new 661/679] mmu.c:undefined reference to `__check_safe_pte_update' kernel test robot
2026-09-27 20:31 ` Andrew Morton
2026-09-28  4:42   ` Anshuman Khandual
2026-09-28  7:44     ` David Hildenbrand (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox