lkml.org 
[lkml]   [2022]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] exit: export make_task_dead()
Date
In a config file from "kernel test robot <lkp@intel.com>" for a
different problem, this linker error was exposed when
CONFIG_IA64_MCA_RECOVERY=m.

We could either export make_task_dead() or restrict IA64_MCA_RECOVERY
to a bool Kconfig symbol instead of a tristate symbol, so go with the
EXPORT_SYMBOL() path.

Fixes this build error:

ERROR: modpost: "make_task_dead" [arch/ia64/kernel/mca_recovery.ko] undefined!

Fixes: 0e25498f8cd4 ("exit: Add and use make_task_dead.")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-ia64@vger.kernel.org
Cc: Tony Luck <tony.luck@intel.com>
Cc: kernel test robot <lkp@intel.com>
---
kernel/exit.c | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20220121.orig/kernel/exit.c
+++ linux-next-20220121/kernel/exit.c
@@ -896,6 +896,7 @@ void __noreturn make_task_dead(int signr

do_exit(signr);
}
+EXPORT_SYMBOL(make_task_dead);

SYSCALL_DEFINE1(exit, int, error_code)
{
\
 
 \ /
  Last update: 2022-01-22 18:49    [W:0.047 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site