public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [tip:x86/alternatives 38/58] arch/x86/um/../kernel/module.c:209: undefined reference to `smp_text_poke_sync_each_cpu'
@ 2025-04-14  2:29 kernel test robot
  2025-04-14  7:55 ` [tip: x86/alternatives] x86/alternatives, um: Rename UML's text_poke_sync() wrapper to smp_text_poke_sync_each_cpu() tip-bot2 for Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-04-14  2:29 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: llvm, oe-kbuild-all, linux-kernel, x86

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/alternatives
head:   af8967158f9ad759a93e8e7a933c10e7cbb01ba2
commit: 6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f [38/58] x86/alternatives: Rename 'text_poke_sync()' to 'smp_text_poke_sync_each_cpu()'
config: um-defconfig (https://download.01.org/0day-ci/archive/20250414/202504141003.kc69fVoj-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250414/202504141003.kc69fVoj-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/202504141003.kc69fVoj-lkp@intel.com/

All errors (new ones prefixed by >>):

   /usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
   /usr/bin/ld: arch/x86/kernel/module.o: in function `apply_relocate_add':
>> arch/x86/um/../kernel/module.c:209: undefined reference to `smp_text_poke_sync_each_cpu'
   clang: error: linker command failed with exit code 1 (use -v to see invocation)


vim +209 arch/x86/um/../kernel/module.c

   188	
   189	static int write_relocate_add(Elf64_Shdr *sechdrs,
   190				      const char *strtab,
   191				      unsigned int symindex,
   192				      unsigned int relsec,
   193				      struct module *me,
   194				      bool apply)
   195	{
   196		int ret;
   197		bool early = me->state == MODULE_STATE_UNFORMED;
   198		void *(*write)(void *, const void *, size_t) = memcpy;
   199	
   200		if (!early) {
   201			write = text_poke;
   202			mutex_lock(&text_mutex);
   203		}
   204	
   205		ret = __write_relocate_add(sechdrs, strtab, symindex, relsec, me,
   206					   write, apply);
   207	
   208		if (!early) {
 > 209			smp_text_poke_sync_each_cpu();
   210			mutex_unlock(&text_mutex);
   211		}
   212	
   213		return ret;
   214	}
   215	

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

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

* [tip: x86/alternatives] x86/alternatives, um: Rename UML's text_poke_sync() wrapper to smp_text_poke_sync_each_cpu()
  2025-04-14  2:29 [tip:x86/alternatives 38/58] arch/x86/um/../kernel/module.c:209: undefined reference to `smp_text_poke_sync_each_cpu' kernel test robot
@ 2025-04-14  7:55 ` tip-bot2 for Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Ingo Molnar @ 2025-04-14  7:55 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: kernel test robot, Ingo Molnar, x86, linux-kernel

The following commit has been merged into the x86/alternatives branch of tip:

Commit-ID:     f99002b9a9cc441a8f362e6fb32cf8a5a990261a
Gitweb:        https://git.kernel.org/tip/f99002b9a9cc441a8f362e6fb32cf8a5a990261a
Author:        Ingo Molnar <mingo@kernel.org>
AuthorDate:    Mon, 14 Apr 2025 09:39:33 +02:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 14 Apr 2025 09:42:22 +02:00

x86/alternatives, um: Rename UML's text_poke_sync() wrapper to smp_text_poke_sync_each_cpu()

Missed this UML wrapper in the rename.

Fixes: 6e4955a9d73e ("x86/alternatives: Rename 'text_poke_sync()' to 'smp_text_poke_sync_each_cpu()'")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/202504141003.kc69fVoj-lkp@intel.com
---
 arch/um/kernel/um_arch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index d4b3b67..2f5ee04 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -477,7 +477,7 @@ void *text_poke_copy(void *addr, const void *opcode, size_t len)
 	return text_poke(addr, opcode, len);
 }
 
-void text_poke_sync(void)
+void smp_text_poke_sync_each_cpu(void)
 {
 }
 

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

end of thread, other threads:[~2025-04-14  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  2:29 [tip:x86/alternatives 38/58] arch/x86/um/../kernel/module.c:209: undefined reference to `smp_text_poke_sync_each_cpu' kernel test robot
2025-04-14  7:55 ` [tip: x86/alternatives] x86/alternatives, um: Rename UML's text_poke_sync() wrapper to smp_text_poke_sync_each_cpu() tip-bot2 for Ingo Molnar

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