Re: [PATCH 2/3] powerpc/cpuhp: BUG -> WARN conversion in offline path

2021-09-20 Thread Daniel Henrique Barboza
On 9/20/21 10:55, Nathan Lynch wrote: If, due to bugs elsewhere, we get into unregister_cpu_online() with a CPU that isn't marked hotpluggable, we can emit a warning and return an appropriate error instead of crashing. Signed-off-by: Nathan Lynch --- As mentioned by Christophe this will

Re: [PATCH 2/3] powerpc/cpuhp: BUG -> WARN conversion in offline path

2021-09-20 Thread Nathan Lynch
Christophe Leroy writes: > Le 20/09/2021 à 15:55, Nathan Lynch a écrit : >> If, due to bugs elsewhere, we get into unregister_cpu_online() with a CPU >> that isn't marked hotpluggable, we can emit a warning and return an >> appropriate error instead of crashing. > > Is it only a bug situation,

Re: [PATCH 2/3] powerpc/cpuhp: BUG -> WARN conversion in offline path

2021-09-20 Thread Christophe Leroy
Le 20/09/2021 à 15:55, Nathan Lynch a écrit : If, due to bugs elsewhere, we get into unregister_cpu_online() with a CPU that isn't marked hotpluggable, we can emit a warning and return an appropriate error instead of crashing. Is it only a bug situation, or is it something that can happen

[PATCH 2/3] powerpc/cpuhp: BUG -> WARN conversion in offline path

2021-09-20 Thread Nathan Lynch
If, due to bugs elsewhere, we get into unregister_cpu_online() with a CPU that isn't marked hotpluggable, we can emit a warning and return an appropriate error instead of crashing. Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1