Re: [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE' undeclared here (not in a function)

From: Thomas Gleixner
Date: Tue Sep 06 2016 - 12:25:34 EST


On Tue, 6 Sep 2016, Sebastian Andrzej Siewior wrote:

> On 2016-09-07 00:08:04 [+0800], kbuild test robot wrote:
> > kernel/cpu.c:1277:26: note: (near initialization for 'cpuhp_bp_states[19]')
> > >> kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE' undeclared here (not in a function)
> > [CPUHP_SLAB_PREPARE] = {
> > ^~~~~~~~~~~~~~~~~~
>
> The
> include/linux/cpuhotplug.h | 1 +

Indeed. And I did not notice because it compiled with CONFIG_SMP=n. Duh!