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


Groups > linux.kernel > #1477575

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

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [tip:smp/hotplug 15/27] kernel/cpu.c:1282:3: error: 'CPUHP_SLAB_PREPARE' undeclared here (not in a function)
Date 2016-09-06 18:10 +0200
Message-ID <ser6H-4cc-35@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[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

csiph-web