Re: [PATCH 4/5] kernel/cpu.c: eliminate cpu_*_mask

From: kbuild test robot
Date: Mon Sep 28 2015 - 02:03:19 EST


Hi Rasmus,

[auto build test results on v4.3-rc2 -- if it's inappropriate base, please ignore]

config: powerpc-allyesconfig (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
git checkout c14fd9e74ebf7540e312ff440343f9843917ec66
# save the attached .config to linux build tree
make.cross ARCH=powerpc

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

In file included from include/linux/rcupdate.h:40:0,
from include/linux/idr.h:18,
from include/linux/kernfs.h:14,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/pci.h:28,
from arch/powerpc/kernel/prom.c:25:
>> include/linux/cpumask.h:93:29: error: expected identifier or '(' before 'const'
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
>> arch/powerpc/include/asm/fadump.h:194:17: note: in expansion of macro 'cpu_online_mask'
struct cpumask cpu_online_mask;
^
>> include/linux/cpumask.h:93:52: error: expected ')' before '&' token
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
>> arch/powerpc/include/asm/fadump.h:194:17: note: in expansion of macro 'cpu_online_mask'
struct cpumask cpu_online_mask;
^
In file included from arch/powerpc/kernel/prom.c:56:0:
>> arch/powerpc/include/asm/fadump.h:195:1: warning: no semicolon at end of struct or union
};
^
--
In file included from include/linux/rcupdate.h:40:0,
from include/linux/srcu.h:33,
from include/linux/notifier.h:15,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:812,
from include/linux/gfp.h:5,
from include/linux/mm.h:9,
from include/linux/memblock.h:18,
from arch/powerpc/kernel/fadump.c:31:
>> include/linux/cpumask.h:93:29: error: expected identifier or '(' before 'const'
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
>> arch/powerpc/include/asm/fadump.h:194:17: note: in expansion of macro 'cpu_online_mask'
struct cpumask cpu_online_mask;
^
>> include/linux/cpumask.h:93:52: error: expected ')' before '&' token
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
>> arch/powerpc/include/asm/fadump.h:194:17: note: in expansion of macro 'cpu_online_mask'
struct cpumask cpu_online_mask;
^
In file included from arch/powerpc/kernel/fadump.c:42:0:
>> arch/powerpc/include/asm/fadump.h:195:1: warning: no semicolon at end of struct or union
};
^
In file included from include/linux/rcupdate.h:40:0,
from include/linux/srcu.h:33,
from include/linux/notifier.h:15,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:812,
from include/linux/gfp.h:5,
from include/linux/mm.h:9,
from include/linux/memblock.h:18,
from arch/powerpc/kernel/fadump.c:31:
arch/powerpc/kernel/fadump.c: In function 'crash_fadump':
>> include/linux/cpumask.h:93:27: error: expected identifier before '(' token
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
>> arch/powerpc/kernel/fadump.c:418:7: note: in expansion of macro 'cpu_online_mask'
fdh->cpu_online_mask = *cpu_online_mask;
^
arch/powerpc/kernel/fadump.c: In function 'fadump_build_cpu_notes':
>> include/linux/cpumask.h:93:27: error: expected identifier before '(' token
#define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
^
arch/powerpc/kernel/fadump.c:649:43: note: in expansion of macro 'cpu_online_mask'
if (fdh && !cpumask_test_cpu(cpu, &fdh->cpu_online_mask)) {
^

vim +93 include/linux/cpumask.h

87
88 extern struct cpumask __cpu_possible_mask;
89 extern struct cpumask __cpu_online_mask;
90 extern struct cpumask __cpu_present_mask;
91 extern struct cpumask __cpu_active_mask;
92 #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask)
> 93 #define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask)
94 #define cpu_present_mask ((const struct cpumask *)&__cpu_present_mask)
95 #define cpu_active_mask ((const struct cpumask *)&__cpu_active_mask)
96

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

Attachment: .config.gz
Description: Binary data