Hi Sebastian, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc3] [cannot apply to next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sebastian-Andrzej-Siewior/fs-buffer-Convert-to-hotplug-state-machine/20161103-230222 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 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=ia64 All error/warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:12:0, from include/linux/list.h:8, from include/linux/kobject.h:20, from include/linux/device.h:17, from include/linux/node.h:17, from include/linux/cpu.h:16, from arch/ia64/kernel/salinfo.c:40: arch/ia64/kernel/salinfo.c: In function 'salinfo_cpu_pre_down': >> arch/ia64/kernel/salinfo.c:572:38: error: 'flags' undeclared (first use in this function) spin_lock_irqsave(&data_saved_lock, flags); ^ include/linux/typecheck.h:10:9: note: in definition of macro 'typecheck' typeof(x) __dummy2; \ ^ include/linux/spinlock.h:337:2: note: in expansion of macro 'raw_spin_lock_irqsave' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^~~~~~~~~~~~~~~~~~~~~ >> arch/ia64/kernel/salinfo.c:572:2: note: in expansion of macro 'spin_lock_irqsave' spin_lock_irqsave(&data_saved_lock, flags); ^~~~~~~~~~~~~~~~~ arch/ia64/kernel/salinfo.c:572:38: note: each undeclared identifier is reported only once for each function it appears in spin_lock_irqsave(&data_saved_lock, flags); ^ include/linux/typecheck.h:10:9: note: in definition of macro 'typecheck' typeof(x) __dummy2; \ ^ include/linux/spinlock.h:337:2: note: in expansion of macro 'raw_spin_lock_irqsave' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^~~~~~~~~~~~~~~~~~~~~ >> arch/ia64/kernel/salinfo.c:572:2: note: in expansion of macro 'spin_lock_irqsave' spin_lock_irqsave(&data_saved_lock, flags); ^~~~~~~~~~~~~~~~~ >> include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast (void)(&__dummy == &__dummy2); \ ^ >> include/linux/spinlock.h:207:3: note: in expansion of macro 'typecheck' typecheck(unsigned long, flags); \ ^~~~~~~~~ include/linux/spinlock.h:337:2: note: in expansion of macro 'raw_spin_lock_irqsave' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^~~~~~~~~~~~~~~~~~~~~ >> arch/ia64/kernel/salinfo.c:572:2: note: in expansion of macro 'spin_lock_irqsave' spin_lock_irqsave(&data_saved_lock, flags); ^~~~~~~~~~~~~~~~~ vim +/flags +572 arch/ia64/kernel/salinfo.c f0c5b094 Sebastian Andrzej Siewior 2016-11-03 566 f0c5b094 Sebastian Andrzej Siewior 2016-11-03 567 static int salinfo_cpu_pre_down(unsigned int cpu) f0c5b094 Sebastian Andrzej Siewior 2016-11-03 568 { f0c5b094 Sebastian Andrzej Siewior 2016-11-03 569 unsigned int i, end = ARRAY_SIZE(salinfo_data); f0c5b094 Sebastian Andrzej Siewior 2016-11-03 570 struct salinfo_data *data; f0c5b094 Sebastian Andrzej Siewior 2016-11-03 571 e026cca0 Keith Owens 2006-01-06 @572 spin_lock_irqsave(&data_saved_lock, flags); f0c5b094 Sebastian Andrzej Siewior 2016-11-03 573 for (i = 0, data = salinfo_data; i < end; ++i, ++data) { e026cca0 Keith Owens 2006-01-06 574 struct salinfo_data_saved *data_saved; f0c5b094 Sebastian Andrzej Siewior 2016-11-03 575 int j = ARRAY_SIZE(data->data_saved) - 1; :::::: The code at line 572 was first introduced by commit :::::: e026cca0f2c09c4c28c902db6384fd8a412671d6 [IA64] Add hotplug cpu to salinfo.c, replace semaphore with mutex :::::: TO: Keith Owens <kaos@xxxxxxx> :::::: CC: Tony Luck <tony.luck@xxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
![]() |