Hi Markus, [auto build test ERROR on ia64/next] [also build test ERROR on v4.8-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/SF-Markus-Elfring/IA64-Fine-tuning-for-some-function-implementations/20160827-021651 base: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git next config: ia64-allnoconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 4.9.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 >>): >> arch/ia64/sn/kernel/irq.c:316:2: error: expected identifier or '(' before 'if' if (pdacpu(cpu)->sn_first_irq == irq) { ^ In file included from include/asm-generic/percpu.h:6:0, from arch/ia64/include/asm/percpu.h:45, from arch/ia64/include/asm/processor.h:77, from arch/ia64/include/asm/thread_info.h:11, from include/linux/thread_info.h:54, from include/asm-generic/preempt.h:4, from arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/irq.h:15, from arch/ia64/sn/kernel/irq.c:11: >> include/linux/percpu-defs.h:250:72: error: expected identifier or '(' before ')' token #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^ include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr' #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu)) ^ >> arch/ia64/include/asm/sn/pda.h:66:23: note: in expansion of macro 'per_cpu' #define pdacpu(cpu) (&per_cpu(pda_percpu, cpu)) ^ >> arch/ia64/sn/kernel/irq.c:316:6: note: in expansion of macro 'pdacpu' if (pdacpu(cpu)->sn_first_irq == irq) { ^ >> arch/ia64/sn/kernel/irq.c:331:2: warning: data definition has no type or storage class rcu_read_unlock(); ^ >> arch/ia64/sn/kernel/irq.c:331:2: error: type defaults to 'int' in declaration of 'rcu_read_unlock' [-Werror=implicit-int] >> arch/ia64/sn/kernel/irq.c:331:2: error: function declaration isn't a prototype [-Werror=strict-prototypes] >> arch/ia64/sn/kernel/irq.c:331:2: error: conflicting types for 'rcu_read_unlock' In file included from include/linux/srcu.h:33:0, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:737, from include/linux/gfp.h:5, from include/linux/irq.h:17, from arch/ia64/sn/kernel/irq.c:11: include/linux/rcupdate.h:905:20: note: previous definition of 'rcu_read_unlock' was here static inline void rcu_read_unlock(void) ^ >> arch/ia64/sn/kernel/irq.c:332:1: error: expected identifier or '(' before '}' token } ^ arch/ia64/sn/kernel/irq.c: In function 'sn_irq_lh_init': arch/ia64/sn/kernel/irq.c:475:18: error: incompatible type for argument 1 of 'kmalloc' sn_irq_lh[i] = kmalloc(*sn_irq_lh[i], GFP_KERNEL); ^ In file included from arch/ia64/sn/kernel/irq.c:15:0: include/linux/slab.h:466:30: note: expected 'size_t' but argument is of type 'struct list_head' static __always_inline void *kmalloc(size_t size, gfp_t flags) ^ cc1: some warnings being treated as errors vim +316 arch/ia64/sn/kernel/irq.c ^1da177e4 Linus Torvalds 2005-04-16 310 break; ^1da177e4 Linus Torvalds 2005-04-16 311 } ^1da177e4 Linus Torvalds 2005-04-16 312 } ^1da177e4 Linus Torvalds 2005-04-16 313 pdacpu(cpu)->sn_last_irq = i; ^1da177e4 Linus Torvalds 2005-04-16 314 } ^1da177e4 Linus Torvalds 2005-04-16 315 ^1da177e4 Linus Torvalds 2005-04-16 @316 if (pdacpu(cpu)->sn_first_irq == irq) { ^1da177e4 Linus Torvalds 2005-04-16 317 foundmatch = 0; cb4cb2cb9 Prarit Bhargava 2005-07-06 318 for (i = pdacpu(cpu)->sn_first_irq + 1; cb4cb2cb9 Prarit Bhargava 2005-07-06 319 i < NR_IRQS && !foundmatch; i++) { cb4cb2cb9 Prarit Bhargava 2005-07-06 320 list_for_each_entry_rcu(tmp_irq_info, cb4cb2cb9 Prarit Bhargava 2005-07-06 321 sn_irq_lh[i], cb4cb2cb9 Prarit Bhargava 2005-07-06 322 list) { ^1da177e4 Linus Torvalds 2005-04-16 323 if (tmp_irq_info->irq_cpuid == cpu) { cb4cb2cb9 Prarit Bhargava 2005-07-06 324 foundmatch = 1; ^1da177e4 Linus Torvalds 2005-04-16 325 break; ^1da177e4 Linus Torvalds 2005-04-16 326 } ^1da177e4 Linus Torvalds 2005-04-16 327 } ^1da177e4 Linus Torvalds 2005-04-16 328 } ^1da177e4 Linus Torvalds 2005-04-16 329 pdacpu(cpu)->sn_first_irq = ((i == NR_IRQS) ? 0 : i); ^1da177e4 Linus Torvalds 2005-04-16 330 } cb4cb2cb9 Prarit Bhargava 2005-07-06 @331 rcu_read_unlock(); ^1da177e4 Linus Torvalds 2005-04-16 @332 } ^1da177e4 Linus Torvalds 2005-04-16 333 ^1da177e4 Linus Torvalds 2005-04-16 334 void sn_irq_fixup(struct pci_dev *pci_dev, struct sn_irq_info *sn_irq_info) ^1da177e4 Linus Torvalds 2005-04-16 335 { :::::: The code at line 316 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data