Re: [PATCH] perf/core: only check cpuctx with cgroup events during cgroup switch

From: kbuild test robot
Date: Fri Dec 30 2016 - 23:07:03 EST

Hi David,

[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.10-rc1 next-20161224]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

config: x86_64-randconfig-s1-12311108 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

kernel/events/core.c: In function 'perf_event_init_all_cpus':
kernel/events/core.c:10587: error: 'cgrp_cpuctx_list' undeclared (first use in this function)
kernel/events/core.c:10587: error: (Each undeclared identifier is reported only once
kernel/events/core.c:10587: error: for each function it appears in.)
>> kernel/events/core.c:10587: error: type defaults to 'int' in declaration of 'type name'
>> kernel/events/core.c:10587: warning: cast from pointer to integer of different size
>> kernel/events/core.c:10587: error: type defaults to 'int' in declaration of 'type name'

vim +10587 kernel/events/core.c

10581 mutex_init(&swhash->hlist_mutex);
10582 INIT_LIST_HEAD(&per_cpu(active_ctx_list, cpu));
10584 INIT_LIST_HEAD(&per_cpu(pmu_sb_events.list, cpu));
10585 raw_spin_lock_init(&per_cpu(pmu_sb_events.lock, cpu));
10587 INIT_LIST_HEAD(&per_cpu(cgrp_cpuctx_list, cpu));
10588 INIT_LIST_HEAD(&per_cpu(sched_cb_list, cpu));
10589 }
10590 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip