This is a note to let you know that I've just added the patch titled ARM: cpu: Switch to arch_cpu_finalize_init() to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: arm-cpu-switch-to-arch_cpu_finalize_init.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 980d7eb01638f535e9ab885449c0bbb4cec0fde6 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Date: Wed, 14 Jun 2023 01:39:25 +0200 Subject: ARM: cpu: Switch to arch_cpu_finalize_init() From: Thomas Gleixner <tglx@xxxxxxxxxxxxx> commit ee31bb0524a2e7c99b03f50249a411cc1eaa411f upstream check_bugs() is about to be phased out. Switch over to the new arch_cpu_finalize_init() implementation. No functional change. Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230613224545.078124882@xxxxxxxxxxxxx Signed-off-by: Daniel Sneddon <daniel.sneddon@xxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bugs.h | 4 ---- arch/arm/kernel/bugs.c | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -4,6 +4,7 @@ config ARM default y select ARCH_CLOCKSOURCE_DATA select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID && !KEXEC + select ARCH_HAS_CPU_FINALIZE_INIT if MMU select ARCH_HAS_DEBUG_VIRTUAL if MMU select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ELF_RANDOMIZE --- a/arch/arm/include/asm/bugs.h +++ b/arch/arm/include/asm/bugs.h @@ -1,6 +1,4 @@ /* - * arch/arm/include/asm/bugs.h - * * Copyright (C) 1995-2003 Russell King * * This program is free software; you can redistribute it and/or modify @@ -13,10 +11,8 @@ extern void check_writebuffer_bugs(void); #ifdef CONFIG_MMU -extern void check_bugs(void); extern void check_other_bugs(void); #else -#define check_bugs() do { } while (0) #define check_other_bugs() do { } while (0) #endif --- a/arch/arm/kernel/bugs.c +++ b/arch/arm/kernel/bugs.c @@ -1,5 +1,6 @@ // SPDX-Identifier: GPL-2.0 #include <linux/init.h> +#include <linux/cpu.h> #include <asm/bugs.h> #include <asm/proc-fns.h> @@ -11,7 +12,7 @@ void check_other_bugs(void) #endif } -void __init check_bugs(void) +void __init arch_cpu_finalize_init(void) { check_writebuffer_bugs(); check_other_bugs(); Patches currently in stable-queue which might be from tglx@xxxxxxxxxxxxx are queue-4.19/x86-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/arm-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/um-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/mips-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/init-x86-move-mem_encrypt_init-into-arch_cpu_finalize_init.patch queue-4.19/sh-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/init-invoke-arch_cpu_finalize_init-earlier.patch queue-4.19/x86-xen-fix-secondary-processors-fpu-initialization.patch queue-4.19/x86-fpu-move-fpu-initialization-into-arch_cpu_finalize_init.patch queue-4.19/init-remove-check_bugs-leftovers.patch queue-4.19/init-provide-arch_cpu_finalize_init.patch queue-4.19/m68k-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/sparc-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/x86-fpu-mark-init-functions-__init.patch queue-4.19/ia64-cpu-switch-to-arch_cpu_finalize_init.patch queue-4.19/x86-fpu-remove-cpuinfo-argument-from-init-functions.patch