Re: [v2 PATCH 1/2] mm: swap: make page_evictable() inline
by kbuild test robot
Hi Yang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mmotm/master]
[also build test ERROR on linus/master v5.6-rc6 next-20200316]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-swap-make-page_evict...
base: git://git.cmpxchg.org/linux-mmotm.git master
config: openrisc-simple_smp_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/suspend.h:5,
from init/do_mounts.c:7:
include/linux/swap.h: In function 'page_evictable':
include/linux/swap.h:395:9: error: implicit declaration of function 'mapping_unevictable'; did you mean 'mapping_deny_writable'? [-Werror=implicit-function-declaration]
395 | ret = !mapping_unevictable(page_mapping(page)) && !PageMlocked(page);
| ^~~~~~~~~~~~~~~~~~~
| mapping_deny_writable
In file included from include/linux/mempolicy.h:16,
from include/linux/shmem_fs.h:7,
from init/do_mounts.c:21:
include/linux/pagemap.h: At top level:
>> include/linux/pagemap.h:73:20: error: conflicting types for 'mapping_unevictable'
73 | static inline bool mapping_unevictable(struct address_space *mapping)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/suspend.h:5,
from init/do_mounts.c:7:
include/linux/swap.h:395:9: note: previous implicit declaration of 'mapping_unevictable' was here
395 | ret = !mapping_unevictable(page_mapping(page)) && !PageMlocked(page);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mapping_unevictable +73 include/linux/pagemap.h
72
> 73 static inline bool mapping_unevictable(struct address_space *mapping)
74 {
75 if (mapping)
76 return test_bit(AS_UNEVICTABLE, &mapping->flags);
77 return !!mapping;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
Re: [v2 PATCH 1/2] mm: swap: make page_evictable() inline
by kbuild test robot
Hi Yang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mmotm/master]
[also build test ERROR on linus/master v5.6-rc6 next-20200316]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-swap-make-page_evict...
base: git://git.cmpxchg.org/linux-mmotm.git master
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/suspend.h:5:0,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/swap.h: In function 'page_evictable':
>> include/linux/swap.h:395:9: error: implicit declaration of function 'mapping_unevictable'; did you mean 'mapping_deny_writable'? [-Werror=implicit-function-declaration]
ret = !mapping_unevictable(page_mapping(page)) && !PageMlocked(page);
^~~~~~~~~~~~~~~~~~~
mapping_deny_writable
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:99: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1139: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
11 real 4 user 5 sys 89.51% cpu make prepare
vim +395 include/linux/swap.h
376
377 /**
378 * page_evictable - test whether a page is evictable
379 * @page: the page to test
380 *
381 * Test whether page is evictable--i.e., should be placed on active/inactive
382 * lists vs unevictable list.
383 *
384 * Reasons page might not be evictable:
385 * (1) page's mapping marked unevictable
386 * (2) page is part of an mlocked VMA
387 *
388 */
389 static inline bool page_evictable(struct page *page)
390 {
391 bool ret;
392
393 /* Prevent address_space of inode and swap cache from being freed */
394 rcu_read_lock();
> 395 ret = !mapping_unevictable(page_mapping(page)) && !PageMlocked(page);
396 rcu_read_unlock();
397 return ret;
398 }
399
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
Re: [PATCHv2 50/50] kernel: Rename show_stack_loglvl() => show_stack()
by kbuild test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on ia64/next linus/master v5.6-rc6 next-20200316]
[cannot apply to tip/x86/core]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-log-level-to-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/sparc/kernel/traps_64.c:2455:6: error: conflicting types for 'show_stack'
2455 | void show_stack(struct task_struct *tsk, unsigned long *_ksp)
| ^~~~~~~~~~
In file included from arch/sparc/kernel/traps_64.c:14:
include/linux/sched/debug.h:33:13: note: previous declaration of 'show_stack' was here
33 | extern void show_stack(struct task_struct *task, unsigned long *sp,
| ^~~~~~~~~~
vim +/show_stack +2455 arch/sparc/kernel/traps_64.c
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2454
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 @2455 void show_stack(struct task_struct *tsk, unsigned long *_ksp)
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2456 {
c6fee0810df4e0 arch/sparc/kernel/traps_64.c David S. Miller 2011-02-26 2457 unsigned long fp, ksp;
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2458 struct thread_info *tp;
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2459 int count = 0;
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2460 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2461 int graph = 0;
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2462 #endif
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2463
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2464 ksp = (unsigned long) _ksp;
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2465 if (!tsk)
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2466 tsk = current;
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2467 tp = task_thread_info(tsk);
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2468 if (ksp == 0UL) {
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2469 if (tsk == current)
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2470 asm("mov %%fp, %0" : "=r" (ksp));
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2471 else
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2472 ksp = tp->ksp;
c1f193a7aed1b4 arch/sparc64/kernel/traps.c David S. Miller 2007-07-30 2473 }
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2474 if (tp == current_thread_info())
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2475 flushw_all();
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2476
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2477 fp = ksp + STACK_BIAS;
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2478
4fe3ebec122f23 arch/sparc64/kernel/traps.c David S. Miller 2008-07-17 2479 printk("Call Trace:\n");
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2480 do {
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2481 struct sparc_stackf *sf;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2482 struct pt_regs *regs;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2483 unsigned long pc;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2484
4f70f7a91bffdc arch/sparc64/kernel/traps.c David S. Miller 2008-08-12 2485 if (!kstack_valid(tp, fp))
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2486 break;
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2487 sf = (struct sparc_stackf *) fp;
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2488 regs = (struct pt_regs *) (sf + 1);
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2489
4f70f7a91bffdc arch/sparc64/kernel/traps.c David S. Miller 2008-08-12 2490 if (kstack_is_trap_frame(tp, regs)) {
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2491 if (!(regs->tstate & TSTATE_PRIV))
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2492 break;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2493 pc = regs->tpc;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2494 fp = regs->u_regs[UREG_I6] + STACK_BIAS;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2495 } else {
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2496 pc = sf->callers_pc;
14d2c68baa659c arch/sparc64/kernel/traps.c David S. Miller 2008-05-21 2497 fp = (unsigned long)sf->fp + STACK_BIAS;
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2498 }
77c664fa586240 arch/sparc64/kernel/traps.c David S. Miller 2008-04-24 2499
4fe3ebec122f23 arch/sparc64/kernel/traps.c David S. Miller 2008-07-17 2500 printk(" [%016lx] %pS\n", pc, (void *) pc);
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2501 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2502 if ((pc + 8UL) == (unsigned long) &return_to_handler) {
945626db0961d8 arch/sparc/kernel/traps_64.c Steven Rostedt (VMware 2018-12-07 2503) struct ftrace_ret_stack *ret_stack;
945626db0961d8 arch/sparc/kernel/traps_64.c Steven Rostedt (VMware 2018-12-07 2504) ret_stack = ftrace_graph_get_ret_stack(tsk, graph);
945626db0961d8 arch/sparc/kernel/traps_64.c Steven Rostedt (VMware 2018-12-07 2505) if (ret_stack) {
945626db0961d8 arch/sparc/kernel/traps_64.c Steven Rostedt (VMware 2018-12-07 2506) pc = ret_stack->ret;
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2507 printk(" [%016lx] %pS\n", pc, (void *) pc);
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2508 graph++;
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2509 }
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2510 }
667f0cee3e0321 arch/sparc/kernel/traps_64.c David S. Miller 2010-04-21 2511 #endif
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2512 } while (++count < 16);
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2513 }
^1da177e4c3f41 arch/sparc64/kernel/traps.c Linus Torvalds 2005-04-16 2514
:::::: The code at line 2455 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
[jirislaby:devel 15/33] ERROR: modpost: "__mulsi3" [drivers/ipack/devices/ipoctal.ko] undefined!
by kbuild test robot
Hi Jiri,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 4a3d19b7c00bef0942f4f857d1b7b08dd95bc4aa
commit: c87bea287b9362de354a8f2436aa237694bd118d [15/33] TTY: move hw_stopped to tty_port
config: openrisc-randconfig-a001-20200316 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c87bea287b9362de354a8f2436aa237694bd118d
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ERROR: modpost: "__mulsi3" [net/ieee802154/ieee802154.ko] undefined!
ERROR: modpost: "__mulsi3" [net/atm/atm.ko] undefined!
ERROR: modpost: "__mulsi3" [net/bluetooth/bluetooth.ko] undefined!
ERROR: modpost: "__mulsi3" [net/mpls/mpls_router.ko] undefined!
ERROR: modpost: "__mulsi3" [net/nfc/nfc_digital.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/bcma/bcma.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/bluetooth/btmrvl_sdio.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/xdpe12284.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/max34440.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/max31785.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/lm25066.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/adm1275.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pmbus/pmbus_core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83l786ng.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83l785ts.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/vt1211.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/tmp421.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/tmp401.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/tmp103.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/thmc50.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/amc6821.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/smsc47m192.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/smsc47m1.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/shtc1.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/sht3x.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/sht21.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/pc87427.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ntc_thermistor.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/nct7802.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/tc654.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/mcp3021.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max6697.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max6650.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max6642.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max6621.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max31730.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/max197.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc4245.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc4222.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc4215.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc4151.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc2990.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ltc2947-core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm95245.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm95241.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm93.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm92.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm85.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm83.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm80.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm78.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm77.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/lm75.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/jc42.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/it87.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ina3221.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ina2xx.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ina209.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ibmaem.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/hih6130.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/gpio-fan.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/gl518sm.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/g762.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/g760a.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/f75375s.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/f71805f.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/emc6w201.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/emc2103.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ds1621.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ds620.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/dme1737.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/da9055-hwmon.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/da9052-hwmon.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/aspeed-pwm-tacho.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adt7475.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adt7470.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adt7462.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adt7411.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adt7x10.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ads7828.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adm9240.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adm1177.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adm1031.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adm1025.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/adc128d818.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/ad7414.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83791d.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83795.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83793.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83792d.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83773g.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/w83627hf.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwmon/hwmon-vid.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/w1/wire.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/pps/pps_core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/gameport/lightning.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/gameport/gameport.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mux/mux-adg792a.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hwtracing/intel_th/intel_th_gth.ko] undefined!
>> ERROR: modpost: "__mulsi3" [drivers/ipack/devices/ipoctal.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/proximity/srf04.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/proximity/isl29501.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/potentiostat/lmp91000.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/magnetometer/st_magn.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/magnetometer/hid-sensor-magn-3d.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/vcnl4035.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/tcs3414.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/tsl2563.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/opt3001.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/isl29018.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/light/cm3232.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/imu/inv_mpu6050/inv-mpu6050.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/chemical/sps30.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/afe/iio-rescale.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/ti-ads1015.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/qcom-spmi-iadc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/palmas_gpadc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/max1363.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/dln2-adc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/adc/da9150-gpadc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/accel/st_accel.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/accel/bma400_core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/iio/accel/adxl372.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/devfreq/governor_simpleondemand.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-steam.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-picolcd.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-pl.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-magicmouse.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-asus.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/hid/hid-alps.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/crypto/inside-secure/crypto_safexcel.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/crypto/virtio/virtio_crypto.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lm3697.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lm3692x.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-mt6323.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-pwm.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-da9052.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-pca955x.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-tca6507.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lp8501.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lp5521.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lp3944.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-gpio.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-pca9532.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/leds/leds-lm3532.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/core/mmc_test.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/core/mmc_block.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/core/mmc_core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/cqhci.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/usdhi6rol0.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/ushc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/vub300.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/mtk-sd.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/mmc/host/sdhci.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/md/dm-clone.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/md/dm-thin-pool.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/md/bcache/bcache.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/max77693_charger.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/max1721x_battery.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/max17042_battery.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/da9150-fg.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/ds2781_battery.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/power/supply/88pm860x_battery.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/ptp/ptp_clockmatrix.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/ptp/ptp_ines.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/ptp/ptp.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/media/usb/hackrf/hackrf.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/media/common/videobuf2/videobuf2-v4l2.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/media/rc/rc-loopback.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/media/rc/rc-core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/media/i2c/ir-kbd-i2c.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/i2c/i2c-stub.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/i2c/algos/i2c-algo-pca.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-rx8025.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-rv3028.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-pcf8583.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-pcf8523.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-max8907.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-ftrtc010.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-ds1553.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/rtc/rtc-ab-eoz9.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/rmi4/rmi_core.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/misc/twl6040-vibra.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/misc/ati_remote2.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/tablet/gtco.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/tablet/aiptek.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/keyboard/qt1050.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/input/keyboard/gpio_keys.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/chipidea/ci_hdrc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/atm/xusbatm.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/atm/usbatm.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/atm/ueagle-atm.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/atm/cxacru.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/serial/iuu_phoenix.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/serial/ipaq.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/serial/cp210x.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/gadget/udc/mv_udc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/gadget/udc/m66592-udc.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/misc/sisusbvga/sisusbvga.ko] undefined!
ERROR: modpost: "__mulsi3" [drivers/usb/storage/ums-usbat.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
Re: [PATCH 2/4] media: v4l2-common: add helper functions to call s_stream() callbacks
by kbuild test robot
Hi Helen,
I love your patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v5.6-rc6 next-20200312]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Helen-Koike/media-add-v4l2_pipel...
base: git://linuxtv.org/media_tree.git master
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media/v4l2-core/v4l2-common.c:37:
drivers/media/v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_disable':
>> include/linux/kernel.h:987:51: error: 'struct v4l2_subdev' has no member named 'entity'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-common.c:469:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
469 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/compiler_types.h:129:35: error: 'struct v4l2_subdev' has no member named 'entity'
129 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:990:21: note: in expansion of macro 'offsetof'
990 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-common.c:469:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
469 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/v4l2-core/v4l2-common.c: At top level:
>> drivers/media/v4l2-core/v4l2-common.c:485:2: error: expected identifier or '(' before 'if'
485 | if (!pipe->streaming_count)
| ^~
>> drivers/media/v4l2-core/v4l2-common.c:488:15: error: expected declaration specifiers or '...' before '&' token
488 | mutex_unlock(&mdev->graph_mutex);
| ^
>> drivers/media/v4l2-core/v4l2-common.c:490:2: error: expected identifier or '(' before 'return'
490 | return ret;
| ^~~~~~
>> drivers/media/v4l2-core/v4l2-common.c:491:1: error: expected identifier or '(' before '}' token
491 | }
| ^
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media/v4l2-core/v4l2-common.c:37:
drivers/media/v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_enable':
>> include/linux/kernel.h:987:51: error: 'struct v4l2_subdev' has no member named 'entity'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media/v4l2-core/v4l2-common.c:518:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
518 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/compiler_types.h:129:35: error: 'struct v4l2_subdev' has no member named 'entity'
129 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:990:21: note: in expansion of macro 'offsetof'
990 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media/v4l2-core/v4l2-common.c:518:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
518 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/v4l2-core/v4l2-common.c: At top level:
drivers/media/v4l2-core/v4l2-common.c:535:2: error: expected identifier or '(' before 'if'
535 | if (!pipe->streaming_count)
| ^~
drivers/media/v4l2-core/v4l2-common.c:538:15: error: expected declaration specifiers or '...' before '&' token
538 | mutex_unlock(&mdev->graph_mutex);
| ^
drivers/media/v4l2-core/v4l2-common.c:540:2: error: expected identifier or '(' before 'return'
540 | return ret;
| ^~~~~~
drivers/media/v4l2-core/v4l2-common.c:541:1: error: expected identifier or '(' before '}' token
541 | }
| ^
drivers/media/v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_disable':
>> drivers/media/v4l2-core/v4l2-common.c:483:2: warning: control reaches end of non-void function [-Wreturn-type]
483 | }
| ^
drivers/media/v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_enable':
drivers/media/v4l2-core/v4l2-common.c:533:2: warning: control reaches end of non-void function [-Wreturn-type]
533 | }
| ^
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media//v4l2-core/v4l2-common.c:37:
drivers/media//v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_disable':
>> include/linux/kernel.h:987:51: error: 'struct v4l2_subdev' has no member named 'entity'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c:469:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
469 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/compiler_types.h:129:35: error: 'struct v4l2_subdev' has no member named 'entity'
129 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:990:21: note: in expansion of macro 'offsetof'
990 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c:469:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
469 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c: At top level:
drivers/media//v4l2-core/v4l2-common.c:485:2: error: expected identifier or '(' before 'if'
485 | if (!pipe->streaming_count)
| ^~
drivers/media//v4l2-core/v4l2-common.c:488:15: error: expected declaration specifiers or '...' before '&' token
488 | mutex_unlock(&mdev->graph_mutex);
| ^
drivers/media//v4l2-core/v4l2-common.c:490:2: error: expected identifier or '(' before 'return'
490 | return ret;
| ^~~~~~
drivers/media//v4l2-core/v4l2-common.c:491:1: error: expected identifier or '(' before '}' token
491 | }
| ^
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/media//v4l2-core/v4l2-common.c:37:
drivers/media//v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_enable':
>> include/linux/kernel.h:987:51: error: 'struct v4l2_subdev' has no member named 'entity'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
987 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c:518:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
518 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
>> include/linux/compiler_types.h:129:35: error: 'struct v4l2_subdev' has no member named 'entity'
129 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:990:21: note: in expansion of macro 'offsetof'
990 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
>> include/media/v4l2-subdev.h:888:3: note: in expansion of macro 'container_of'
888 | container_of(__me_sd_ent, struct v4l2_subdev, entity) : \
| ^~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c:518:8: note: in expansion of macro 'media_entity_to_v4l2_subdev'
518 | sd = media_entity_to_v4l2_subdev(entity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media//v4l2-core/v4l2-common.c: At top level:
drivers/media//v4l2-core/v4l2-common.c:535:2: error: expected identifier or '(' before 'if'
535 | if (!pipe->streaming_count)
| ^~
drivers/media//v4l2-core/v4l2-common.c:538:15: error: expected declaration specifiers or '...' before '&' token
538 | mutex_unlock(&mdev->graph_mutex);
| ^
drivers/media//v4l2-core/v4l2-common.c:540:2: error: expected identifier or '(' before 'return'
540 | return ret;
| ^~~~~~
drivers/media//v4l2-core/v4l2-common.c:541:1: error: expected identifier or '(' before '}' token
541 | }
| ^
drivers/media//v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_disable':
drivers/media//v4l2-core/v4l2-common.c:483:2: warning: control reaches end of non-void function [-Wreturn-type]
483 | }
| ^
drivers/media//v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_stream_enable':
drivers/media//v4l2-core/v4l2-common.c:533:2: warning: control reaches end of non-void function [-Wreturn-type]
533 | }
| ^
vim +987 include/linux/kernel.h
cf14f27f82af78 Alexei Starovoitov 2018-03-28 977
^1da177e4c3f41 Linus Torvalds 2005-04-16 978 /**
^1da177e4c3f41 Linus Torvalds 2005-04-16 979 * container_of - cast a member of a structure out to the containing structure
^1da177e4c3f41 Linus Torvalds 2005-04-16 980 * @ptr: the pointer to the member.
^1da177e4c3f41 Linus Torvalds 2005-04-16 981 * @type: the type of the container struct this is embedded in.
^1da177e4c3f41 Linus Torvalds 2005-04-16 982 * @member: the name of the member within the struct.
^1da177e4c3f41 Linus Torvalds 2005-04-16 983 *
^1da177e4c3f41 Linus Torvalds 2005-04-16 984 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 985 #define container_of(ptr, type, member) ({ \
c7acec713d14c6 Ian Abbott 2017-07-12 986 void *__mptr = (void *)(ptr); \
c7acec713d14c6 Ian Abbott 2017-07-12 @987 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
c7acec713d14c6 Ian Abbott 2017-07-12 988 !__same_type(*(ptr), void), \
c7acec713d14c6 Ian Abbott 2017-07-12 989 "pointer type mismatch in container_of()"); \
c7acec713d14c6 Ian Abbott 2017-07-12 990 ((type *)(__mptr - offsetof(type, member))); })
^1da177e4c3f41 Linus Torvalds 2005-04-16 991
:::::: The code at line 987 was first introduced by commit
:::::: c7acec713d14c6ce8a20154f9dfda258d6bcad3b kernel.h: handle pointers to arrays better in container_of()
:::::: TO: Ian Abbott <abbotti(a)mev.co.uk>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
Re: [PATCH v8 7/8] crypto: caam - enable prediction resistance in HRWNG
by kbuild test robot
Hi Andrey,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on cryptodev/master]
[also build test ERROR on next-20200316]
[cannot apply to crypto/master v5.6-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Andrey-Smirnov/enable-CAAM-s-HWR...
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/crypto/caam/ctrl.c:583:34: warning: 'struct fsl_mc_version' declared inside parameter list will not be visible outside of this definition or declaration
583 | static bool check_version(struct fsl_mc_version *mc_version, u32 major,
| ^~~~~~~~~~~~~~
drivers/crypto/caam/ctrl.c: In function 'check_version':
>> drivers/crypto/caam/ctrl.c:586:16: error: dereferencing pointer to incomplete type 'struct fsl_mc_version'
586 | if (mc_version->major > major)
| ^~
drivers/crypto/caam/ctrl.c: In function 'caam_probe':
>> drivers/crypto/caam/ctrl.c:714:16: error: implicit declaration of function 'fsl_mc_get_version'; did you mean 'fsl_mc_get_endpoint'? [-Werror=implicit-function-declaration]
714 | mc_version = fsl_mc_get_version();
| ^~~~~~~~~~~~~~~~~~
| fsl_mc_get_endpoint
>> drivers/crypto/caam/ctrl.c:714:14: warning: assignment to 'struct fsl_mc_version *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
714 | mc_version = fsl_mc_get_version();
| ^
>> drivers/crypto/caam/ctrl.c:716:31: error: passing argument 1 of 'check_version' from incompatible pointer type [-Werror=incompatible-pointer-types]
716 | pr_support = check_version(mc_version, 10, 20, 0);
| ^~~~~~~~~~
| |
| struct fsl_mc_version *
drivers/crypto/caam/ctrl.c:583:50: note: expected 'struct fsl_mc_version *' but argument is of type 'struct fsl_mc_version *'
583 | static bool check_version(struct fsl_mc_version *mc_version, u32 major,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
cc1: some warnings being treated as errors
vim +586 drivers/crypto/caam/ctrl.c
581
582 #ifdef CONFIG_FSL_MC_BUS
> 583 static bool check_version(struct fsl_mc_version *mc_version, u32 major,
584 u32 minor, u32 revision)
585 {
> 586 if (mc_version->major > major)
587 return true;
588
589 if (mc_version->major == major) {
590 if (mc_version->minor > minor)
591 return true;
592
593 if (mc_version->minor == minor && mc_version->revision > 0)
594 return true;
595 }
596
597 return false;
598 }
599 #endif
600
601
602 /* Probe routine for CAAM top (controller) level */
603 static int caam_probe(struct platform_device *pdev)
604 {
605 int ret, ring, gen_sk, ent_delay = RTSDCTL_ENT_DLY_MIN;
606 u64 caam_id;
607 const struct soc_device_attribute *imx_soc_match;
608 struct device *dev;
609 struct device_node *nprop, *np;
610 struct caam_ctrl __iomem *ctrl;
611 struct caam_drv_private *ctrlpriv;
612 #ifdef CONFIG_DEBUG_FS
613 struct caam_perfmon *perfmon;
614 struct dentry *dfs_root;
615 #endif
616 u32 scfgr, comp_params;
617 u8 rng_vid;
618 int pg_size;
619 int BLOCK_OFFSET = 0;
620 bool pr_support = false;
621
622 ctrlpriv = devm_kzalloc(&pdev->dev, sizeof(*ctrlpriv), GFP_KERNEL);
623 if (!ctrlpriv)
624 return -ENOMEM;
625
626 dev = &pdev->dev;
627 dev_set_drvdata(dev, ctrlpriv);
628 nprop = pdev->dev.of_node;
629
630 imx_soc_match = soc_device_match(caam_imx_soc_table);
631 caam_imx = (bool)imx_soc_match;
632
633 if (imx_soc_match) {
634 if (!imx_soc_match->data) {
635 dev_err(dev, "No clock data provided for i.MX SoC");
636 return -EINVAL;
637 }
638
639 ret = init_clocks(dev, imx_soc_match->data);
640 if (ret)
641 return ret;
642 }
643
644
645 /* Get configuration properties from device tree */
646 /* First, get register page */
647 ctrl = devm_of_iomap(dev, nprop, 0, NULL);
648 ret = PTR_ERR_OR_ZERO(ctrl);
649 if (ret) {
650 dev_err(dev, "caam: of_iomap() failed\n");
651 return ret;
652 }
653
654 caam_little_end = !(bool)(rd_reg32(&ctrl->perfmon.status) &
655 (CSTA_PLEND | CSTA_ALT_PLEND));
656 comp_params = rd_reg32(&ctrl->perfmon.comp_parms_ms);
657 if (comp_params & CTPR_MS_PS && rd_reg32(&ctrl->mcr) & MCFGR_LONG_PTR)
658 caam_ptr_sz = sizeof(u64);
659 else
660 caam_ptr_sz = sizeof(u32);
661 caam_dpaa2 = !!(comp_params & CTPR_MS_DPAA2);
662 ctrlpriv->qi_present = !!(comp_params & CTPR_MS_QI_MASK);
663
664 #ifdef CONFIG_CAAM_QI
665 /* If (DPAA 1.x) QI present, check whether dependencies are available */
666 if (ctrlpriv->qi_present && !caam_dpaa2) {
667 ret = qman_is_probed();
668 if (!ret) {
669 return -EPROBE_DEFER;
670 } else if (ret < 0) {
671 dev_err(dev, "failing probe due to qman probe error\n");
672 return -ENODEV;
673 }
674
675 ret = qman_portals_probed();
676 if (!ret) {
677 return -EPROBE_DEFER;
678 } else if (ret < 0) {
679 dev_err(dev, "failing probe due to qman portals probe error\n");
680 return -ENODEV;
681 }
682 }
683 #endif
684
685 /* Allocating the BLOCK_OFFSET based on the supported page size on
686 * the platform
687 */
688 pg_size = (comp_params & CTPR_MS_PG_SZ_MASK) >> CTPR_MS_PG_SZ_SHIFT;
689 if (pg_size == 0)
690 BLOCK_OFFSET = PG_SIZE_4K;
691 else
692 BLOCK_OFFSET = PG_SIZE_64K;
693
694 ctrlpriv->ctrl = (struct caam_ctrl __iomem __force *)ctrl;
695 ctrlpriv->assure = (struct caam_assurance __iomem __force *)
696 ((__force uint8_t *)ctrl +
697 BLOCK_OFFSET * ASSURE_BLOCK_NUMBER
698 );
699 ctrlpriv->deco = (struct caam_deco __iomem __force *)
700 ((__force uint8_t *)ctrl +
701 BLOCK_OFFSET * DECO_BLOCK_NUMBER
702 );
703
704 /* Get the IRQ of the controller (for security violations only) */
705 ctrlpriv->secvio_irq = irq_of_parse_and_map(nprop, 0);
706 np = of_find_compatible_node(NULL, NULL, "fsl,qoriq-mc");
707 ctrlpriv->mc_en = !!np;
708 of_node_put(np);
709
710 #ifdef CONFIG_FSL_MC_BUS
711 if (ctrlpriv->mc_en) {
712 struct fsl_mc_version *mc_version;
713
> 714 mc_version = fsl_mc_get_version();
715 if (mc_version)
> 716 pr_support = check_version(mc_version, 10, 20, 0);
717 else
718 return -EPROBE_DEFER;
719 }
720 #endif
721
722 /*
723 * Enable DECO watchdogs and, if this is a PHYS_ADDR_T_64BIT kernel,
724 * long pointers in master configuration register.
725 * In case of SoCs with Management Complex, MC f/w performs
726 * the configuration.
727 */
728 if (!ctrlpriv->mc_en)
729 clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK,
730 MCFGR_AWCACHE_CACH | MCFGR_AWCACHE_BUFF |
731 MCFGR_WDENABLE | MCFGR_LARGE_BURST);
732
733 handle_imx6_err005766(&ctrl->mcr);
734
735 /*
736 * Read the Compile Time paramters and SCFGR to determine
737 * if Virtualization is enabled for this platform
738 */
739 scfgr = rd_reg32(&ctrl->scfgr);
740
741 ctrlpriv->virt_en = 0;
742 if (comp_params & CTPR_MS_VIRT_EN_INCL) {
743 /* VIRT_EN_INCL = 1 & VIRT_EN_POR = 1 or
744 * VIRT_EN_INCL = 1 & VIRT_EN_POR = 0 & SCFGR_VIRT_EN = 1
745 */
746 if ((comp_params & CTPR_MS_VIRT_EN_POR) ||
747 (!(comp_params & CTPR_MS_VIRT_EN_POR) &&
748 (scfgr & SCFGR_VIRT_EN)))
749 ctrlpriv->virt_en = 1;
750 } else {
751 /* VIRT_EN_INCL = 0 && VIRT_EN_POR_VALUE = 1 */
752 if (comp_params & CTPR_MS_VIRT_EN_POR)
753 ctrlpriv->virt_en = 1;
754 }
755
756 if (ctrlpriv->virt_en == 1)
757 clrsetbits_32(&ctrl->jrstart, 0, JRSTART_JR0_START |
758 JRSTART_JR1_START | JRSTART_JR2_START |
759 JRSTART_JR3_START);
760
761 ret = dma_set_mask_and_coherent(dev, caam_get_dma_mask(dev));
762 if (ret) {
763 dev_err(dev, "dma_set_mask_and_coherent failed (%d)\n", ret);
764 return ret;
765 }
766
767 ctrlpriv->era = caam_get_era(ctrl);
768 ctrlpriv->domain = iommu_get_domain_for_dev(dev);
769
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months
[jani:device-info-inheritance-v3 3/19] drivers/gpu/drm/i915/i915_pci.c:212:2: error: initializer element is not a compile-time constant
by kbuild test robot
tree: git://people.freedesktop.org/~jani/drm device-info-inheritance-v3
head: 6e8df0961b60ee4c69a95e9304bcb14e85ba4803
commit: c8b57de4e93bccfcabe9e32bb4fe8219d3633049 [3/19] drm/i915: store color info in const structs instead of macros
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project f70e7dc17d78a83265a89158ee549f1147d7d500)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_pci.c:212:2: error: initializer element is not a compile-time constant
I830_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:189:11: note: expanded from macro 'I830_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:217:2: error: initializer element is not a compile-time constant
I845_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:207:11: note: expanded from macro 'I845_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:222:2: error: initializer element is not a compile-time constant
I830_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:189:11: note: expanded from macro 'I830_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:228:2: error: initializer element is not a compile-time constant
I845_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:207:11: note: expanded from macro 'I845_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:247:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:258:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:271:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:282:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:296:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:303:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:310:2: error: initializer element is not a compile-time constant
GEN3_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:242:11: note: expanded from macro 'GEN3_FEATURES'
.color = i9xx_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:333:2: error: initializer element is not a compile-time constant
GEN4_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:328:11: note: expanded from macro 'GEN4_FEATURES'
.color = i965_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:341:2: error: initializer element is not a compile-time constant
GEN4_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:328:11: note: expanded from macro 'GEN4_FEATURES'
.color = i965_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:352:2: error: initializer element is not a compile-time constant
GEN4_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:328:11: note: expanded from macro 'GEN4_FEATURES'
.color = i965_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:359:2: error: initializer element is not a compile-time constant
GEN4_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:328:11: note: expanded from macro 'GEN4_FEATURES'
.color = i965_colors, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:384:2: error: initializer element is not a compile-time constant
GEN5_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:11: note: expanded from macro 'GEN5_FEATURES'
.color = ilk_colors, \
^~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:389:2: error: initializer element is not a compile-time constant
GEN5_FEATURES,
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:11: note: expanded from macro 'GEN5_FEATURES'
.color = ilk_colors, \
vim +212 drivers/gpu/drm/i915/i915_pci.c
da1184cd41d4c6b Matthew Auld 2019-10-18 172
37fbbd49054b624 Ville Syrjälä 2019-03-05 173 #define I830_FEATURES \
37fbbd49054b624 Ville Syrjälä 2019-03-05 174 GEN(2), \
37fbbd49054b624 Ville Syrjälä 2019-03-05 175 .is_mobile = 1, \
8d8b00318593e28 Jani Nikula 2019-09-11 176 .pipe_mask = BIT(PIPE_A) | BIT(PIPE_B), \
37fbbd49054b624 Ville Syrjälä 2019-03-05 177 .display.has_overlay = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 178 .display.cursor_needs_physical = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 179 .display.overlay_needs_physical = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 180 .display.has_gmch = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 181 .gpu_reset_clobbers_display = true, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 182 .hws_needs_physical = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 183 .unfenced_needs_alignment = 1, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 184 .engine_mask = BIT(RCS0), \
37fbbd49054b624 Ville Syrjälä 2019-03-05 185 .has_snoop = true, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 186 .has_coherent_ggtt = false, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 187 I9XX_PIPE_OFFSETS, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 188 I9XX_CURSOR_OFFSETS, \
c8b57de4e93bccf Jani Nikula 2020-03-05 189 .color = i9xx_colors, \
2411ccdddd53007 Jani Nikula 2020-03-05 190 .page_sizes = GEN_DEFAULT_PAGE_SIZES, \
980a85a19e6db48 Jani Nikula 2020-03-05 191 .memory_regions = GEN_DEFAULT_REGIONS
37fbbd49054b624 Ville Syrjälä 2019-03-05 192
37fbbd49054b624 Ville Syrjälä 2019-03-05 193 #define I845_FEATURES \
bc76298e68e791f Chris Wilson 2018-02-15 194 GEN(2), \
8d8b00318593e28 Jani Nikula 2019-09-11 195 .pipe_mask = BIT(PIPE_A), \
d53db442db36fdb José Roberto de Souza 2018-11-30 196 .display.has_overlay = 1, \
d53db442db36fdb José Roberto de Souza 2018-11-30 197 .display.overlay_needs_physical = 1, \
b2ae318acdcaf1c Rodrigo Vivi 2019-02-04 198 .display.has_gmch = 1, \
55277e1f3107c0b Chris Wilson 2019-01-03 199 .gpu_reset_clobbers_display = true, \
3177659a41cc436 Carlos Santa 2016-08-17 200 .hws_needs_physical = 1, \
f4ce766f28cd0ef Chris Wilson 2017-03-25 201 .unfenced_needs_alignment = 1, \
8a68d464366efb5 Chris Wilson 2019-03-05 202 .engine_mask = BIT(RCS0), \
5d95c24867aea8a Chris Wilson 2017-09-06 203 .has_snoop = true, \
900ccf30f9e112b Chris Wilson 2018-07-20 204 .has_coherent_ggtt = false, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 205 I845_PIPE_OFFSETS, \
37fbbd49054b624 Ville Syrjälä 2019-03-05 206 I845_CURSOR_OFFSETS, \
c8b57de4e93bccf Jani Nikula 2020-03-05 207 .color = i9xx_colors, \
2411ccdddd53007 Jani Nikula 2020-03-05 208 .page_sizes = GEN_DEFAULT_PAGE_SIZES, \
980a85a19e6db48 Jani Nikula 2020-03-05 209 .memory_regions = GEN_DEFAULT_REGIONS
0eec8dc7f628a8d Carlos Santa 2016-08-17 210
31409fff1a392fa Lucas De Marchi 2019-12-24 211 static const struct intel_device_info i830_info = {
37fbbd49054b624 Ville Syrjälä 2019-03-05 @212 I830_FEATURES,
c5cb21c17a169ee Chris Wilson 2018-02-15 213 PLATFORM(INTEL_I830),
42f5551d276921d Chris Wilson 2016-06-24 214 };
42f5551d276921d Chris Wilson 2016-06-24 215
:::::: The code at line 212 was first introduced by commit
:::::: 37fbbd49054b624400a65cf1a39f152a7f3f4749 drm/i915: Populate pipe_offsets[] & co. accurately
:::::: TO: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 6 months