* [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate
@ 2022-01-24 21:31 Randy Dunlap
2022-01-25 0:20 ` Eric W. Biederman
2022-01-25 5:55 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2022-01-24 21:31 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Eric W. Biederman, Andrew Morton, linux-ia64,
Tony Luck, kernel test robot, Christoph Hellwig
In linux-next, IA64_MCA_RECOVERY uses the (new) function make_task_dead(),
which is not exported for use by modules. Instead of exporting it for
one user, convert IA64_MCA_RECOVERY to be a bool Kconfig symbol.
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.
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: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-ia64@vger.kernel.org
Cc: Tony Luck <tony.luck@intel.com>
Cc: kernel test robot <lkp@intel.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
---
v1 was [PATCH -next] exit: export make_task_dead().
Christoph suggests and prefers that IA64 MCA recovery code just be
forced to be builtin if it is enabled.
arch/ia64/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20220121.orig/arch/ia64/Kconfig
+++ linux-next-20220121/arch/ia64/Kconfig
@@ -318,7 +318,7 @@ config ARCH_PROC_KCORE_TEXT
depends on PROC_KCORE
config IA64_MCA_RECOVERY
- tristate "MCA recovery from errors other than TLB."
+ bool "MCA recovery from errors other than TLB."
config IA64_PALINFO
tristate "/proc/pal support"
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate
2022-01-24 21:31 [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate Randy Dunlap
@ 2022-01-25 0:20 ` Eric W. Biederman
2022-01-25 5:55 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2022-01-25 0:20 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Andrew Morton, linux-ia64, Tony Luck,
kernel test robot, Christoph Hellwig
Randy Dunlap <rdunlap@infradead.org> writes:
> In linux-next, IA64_MCA_RECOVERY uses the (new) function make_task_dead(),
> which is not exported for use by modules. Instead of exporting it for
> one user, convert IA64_MCA_RECOVERY to be a bool Kconfig symbol.
>
> 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.
>
> Fixes this build error:
>
> ERROR: modpost: "make_task_dead" [arch/ia64/kernel/mca_recovery.ko] undefined!
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
I looked and ia64_unreg_MCA_extension has no synchronization so I don't
think it has ever been safe to this code when built as a module.
> 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: Andrew Morton <akpm@linux-foundation.org>
> Cc: linux-ia64@vger.kernel.org
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: kernel test robot <lkp@intel.com>
> Suggested-by: Christoph Hellwig <hch@infradead.org>
> ---
> v1 was [PATCH -next] exit: export make_task_dead().
> Christoph suggests and prefers that IA64 MCA recovery code just be
> forced to be builtin if it is enabled.
>
> arch/ia64/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20220121.orig/arch/ia64/Kconfig
> +++ linux-next-20220121/arch/ia64/Kconfig
> @@ -318,7 +318,7 @@ config ARCH_PROC_KCORE_TEXT
> depends on PROC_KCORE
>
> config IA64_MCA_RECOVERY
> - tristate "MCA recovery from errors other than TLB."
> + bool "MCA recovery from errors other than TLB."
>
> config IA64_PALINFO
> tristate "/proc/pal support"
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate
2022-01-24 21:31 [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate Randy Dunlap
2022-01-25 0:20 ` Eric W. Biederman
@ 2022-01-25 5:55 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2022-01-25 5:55 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Eric W. Biederman, Andrew Morton, linux-ia64,
Tony Luck, kernel test robot, Christoph Hellwig
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-25 5:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24 21:31 [PATCH -next v2] ia64: make IA64_MCA_RECOVERY bool instead of tristate Randy Dunlap
2022-01-25 0:20 ` Eric W. Biederman
2022-01-25 5:55 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox