Re: [PATCH v8 7/7] powerpc/perf: nest pmu cpumask and cpu hotplug support

From: kbuild test robot
Date: Mon Feb 29 2016 - 15:15:21 EST


Hi Madhavan,

[auto build test ERROR on v4.5-rc5]
[also build test ERROR on next-20160229]
[cannot apply to powerpc/next]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Madhavan-Srinivasan/powerpc-powernv-Nest-Instrumentation-support/20160223-120036
config: powerpc-maple_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All errors (new ones prefixed by >>):

arch/powerpc/perf/nest-pmu.c: In function 'nest_exit_cpu':
>> arch/powerpc/perf/nest-pmu.c:82:12: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
l_cpumask = cpumask_of_node(nid);
^
arch/powerpc/perf/nest-pmu.c: In function 'nest_init_cpu':
arch/powerpc/perf/nest-pmu.c:101:12: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
l_cpumask = cpumask_of_node(nid);
^
cc1: all warnings being treated as errors

vim +/const +82 arch/powerpc/perf/nest-pmu.c

76
77 /*
78 * Now that this cpu is one of the designated,
79 * find a next cpu a) which is online and b) in same chip.
80 */
81 nid = cpu_to_node(cpu);
> 82 l_cpumask = cpumask_of_node(nid);
83 target = cpumask_next(cpu, l_cpumask);
84
85 /*

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

Attachment: .config.gz
Description: Binary data