Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1477575 > unrolled thread

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

Started bykbuild test robot <fengguang.wu@intel.com>
First post2016-09-06 18:10 +0200
Last post2016-09-06 18:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error:  'CPUHP_SLAB_PREPARE' undeclared here (not in a function) kbuild test robot <fengguang.wu@intel.com> - 2016-09-06 18:10 +0200
    Re: [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error:  'CPUHP_SLAB_PREPARE' undeclared here (not in a function) Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-09-06 18:20 +0200
      Re: [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE'  undeclared here (not in a function) Thomas Gleixner <tglx@linutronix.de> - 2016-09-06 18:30 +0200

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

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-09-06 18:10 +0200
Subject[tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE' undeclared here (not in a function)
Message-ID<ser6H-4cc-35@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug
head:   712251665c8b6ff95fd27876338c2543d8fb5bc8
commit: e37b94bdb19a66c1164b0916c648da15c44ff39a [15/27] slab: Convert to hotplug state machine
config: i386-randconfig-s0-201636 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout e37b94bdb19a66c1164b0916c648da15c44ff39a
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   kernel/cpu.c:1277:26: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_RELAY_PREPARE] = {
                             ^
   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] = {
      ^~~~~~~~~~~~~~~~~~
>> kernel/cpu.c:1282:3: error: array index in initializer not of integer type
   kernel/cpu.c:1282:3: note: (near initialization for 'cpuhp_bp_states')
   kernel/cpu.c:1282:25: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_SLAB_PREPARE] = {
                            ^
   kernel/cpu.c:1282:25: note: (near initialization for 'cpuhp_bp_states[20]')
   kernel/cpu.c:1287:25: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_RCUTREE_PREP] = {
                            ^
   kernel/cpu.c:1287:25: note: (near initialization for 'cpuhp_bp_states[20]')
   kernel/cpu.c:1296:27: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_NOTIFY_PREPARE] = {
                              ^
   kernel/cpu.c:1296:27: note: (near initialization for 'cpuhp_bp_states[21]')
   kernel/cpu.c:1308:24: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_TIMERS_DEAD] = {
                           ^
   kernel/cpu.c:1308:24: note: (near initialization for 'cpuhp_bp_states[22]')
   kernel/cpu.c:1314:24: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_BRINGUP_CPU] = {
                           ^
   kernel/cpu.c:1314:24: note: (near initialization for 'cpuhp_bp_states[23]')
   kernel/cpu.c:1320:28: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_AP_SMPCFD_DYING] = {
                               ^
   kernel/cpu.c:1320:28: note: (near initialization for 'cpuhp_bp_states[66]')
   kernel/cpu.c:1329:25: warning: missing braces around initializer [-Wmissing-braces]
     [CPUHP_TEARDOWN_CPU] = {
                            ^
   kernel/cpu.c:1329:25: note: (near initialization for 'cpuhp_bp_states[69]')
   kernel/cpu.c:1244:46: warning: missing braces around initializer [-Wmissing-braces]
    static struct cpuhp_step cpuhp_bp_states[] = {
                                                 ^
   kernel/cpu.c:1244:46: note: (near initialization for 'cpuhp_bp_states')

vim +/CPUHP_SLAB_PREPARE +1282 kernel/cpu.c

  1271		},
  1272		[CPUHP_SMPCFD_PREPARE] = {
  1273			.name			= "smpcfd:prepare",
  1274			.startup.single		= smpcfd_prepare_cpu,
  1275			.teardown.single	= smpcfd_dead_cpu,
  1276		},
> 1277		[CPUHP_RELAY_PREPARE] = {
  1278			.name			= "relay:prepare",
  1279			.startup		= relay_prepare_cpu,
  1280			.teardown		= NULL,
  1281		},
> 1282		[CPUHP_SLAB_PREPARE] = {
  1283			.name			= "slab:prepare",
  1284			.startup		= slab_prepare_cpu,
  1285			.teardown		= slab_dead_cpu,

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1477578

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2016-09-06 18:20 +0200
Message-ID<sergl-4jl-7@gated-at.bofh.it>
In reply to#1477575
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 +

went missing from the original patch.

Sebastian

[toc] | [prev] | [next] | [standalone]


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

FromThomas Gleixner <tglx@linutronix.de>
Date2016-09-06 18:30 +0200
SubjectRe: [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE' undeclared here (not in a function)
Message-ID<serq2-4mn-11@gated-at.bofh.it>
In reply to#1477578
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!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web