[mlankhorst:locking-rework 25/30] include/linux/dma-resv.h:80:28: error: implicit declaration of function 'lockdep_is_held'; did you mean
by kernel test robot
tree: git://people.freedesktop.org/~mlankhorst/linux locking-rework
head: df835d9d9fee30c2d4584242c64c8b32eae0d0a4
commit: 38caf6340f6830139291ad8e0f64895dfe142465 [25/30] drm/i915: Ensure we hold the pin mutex
config: x86_64-fedora-25 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 38caf6340f6830139291ad8e0f64895dfe142465
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/bug.h:92,
from include/linux/bug.h:5,
from arch/x86/include/asm/paravirt.h:15,
from arch/x86/include/asm/irqflags.h:72,
from include/linux/irqflags.h:16,
from include/linux/rcupdate.h:26,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/sched/mm.h:7,
from drivers/gpu/drm/i915/i915_vma.c:25:
drivers/gpu/drm/i915/i915_vma.c: In function 'i915_ggtt_pin':
>> include/linux/dma-resv.h:80:28: error: implicit declaration of function 'lockdep_is_held'; did you mean 'lockdep_assert_held'? [-Werror=implicit-function-declaration]
80 | #define dma_resv_held(obj) lockdep_is_held(&(obj)->lock.base)
| ^~~~~~~~~~~~~~~
include/asm-generic/bug.h:127:25: note: in definition of macro 'WARN'
127 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
drivers/gpu/drm/i915/i915_vma.c:1008:2: note: in expansion of macro 'WARN_ON'
1008 | WARN_ON(!ww && vma->resv && dma_resv_held(vma->resv));
| ^~~~~~~
drivers/gpu/drm/i915/i915_vma.c:1008:30: note: in expansion of macro 'dma_resv_held'
1008 | WARN_ON(!ww && vma->resv && dma_resv_held(vma->resv));
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +80 include/linux/dma-resv.h
786d7257e537da include/linux/reservation.h Maarten Lankhorst 2013-06-27 79
52791eeec1d9f4 include/linux/dma-resv.h Christian König 2019-08-11 @80 #define dma_resv_held(obj) lockdep_is_held(&(obj)->lock.base)
52791eeec1d9f4 include/linux/dma-resv.h Christian König 2019-08-11 81 #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base)
04a5faa8cbe5a8 include/linux/reservation.h Maarten Lankhorst 2014-07-01 82
:::::: The code at line 80 was first introduced by commit
:::::: 52791eeec1d9f4a7e7fe08aaba0b1553149d93bc dma-buf: rename reservation_object to dma_resv
:::::: TO: Christian König <christian.koenig(a)amd.com>
:::::: CC: Christian König <christian.koenig(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
ld.lld: error: arch/mips/vdso/elf.o is incompatible with elf32-tradlittlemips
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Nathan Chancellor <natechancellor(a)gmail.com>
CC: Thomas Bogendoerfer <tsbogend(a)alpha.franken.de>
Hi Nathan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a581387e415bbb0085e7e67906c8f4a99746590e
commit: 2ff906994b6c2b949c5bf65330a8abb5dde9c8e5 MIPS: VDSO: Use $(LD) instead of $(CC) to link VDSO
date: 9 weeks ago
config: mips-randconfig-r022-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout 2ff906994b6c2b949c5bf65330a8abb5dde9c8e5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: arch/mips/vdso/elf.o is incompatible with elf32-tradlittlemips
>> ld.lld: error: arch/mips/vdso/sigreturn.o is incompatible with elf32-tradlittlemips
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[kvm-riscv:riscv_kvm_master 15/21] drivers/clocksource/timer-riscv.c:96:6: warning: no previous prototype for function 'riscv_cs_get_mult_shift'
by kernel test robot
tree: git://github.com/kvm-riscv/linux.git riscv_kvm_master
head: 36e7b3ba5f5456ef4f2d7989b06c4f1fea368e6f
commit: 0d79f1ca8d6a481003a90a439c4281acecbc79c1 [15/21] RISC-V: KVM: Add timer functionality
config: riscv-randconfig-r005-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 0d79f1ca8d6a481003a90a439c4281acecbc79c1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/clocksource/timer-riscv.c:96:6: warning: no previous prototype for function 'riscv_cs_get_mult_shift' [-Wmissing-prototypes]
void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
^
drivers/clocksource/timer-riscv.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
^
static
1 warning generated.
vim +/riscv_cs_get_mult_shift +96 drivers/clocksource/timer-riscv.c
95
> 96 void riscv_cs_get_mult_shift(u32 *mult, u32 *shift)
97 {
98 *mult = riscv_clocksource.mult;
99 *shift = riscv_clocksource.shift;
100 }
101 EXPORT_SYMBOL_GPL(riscv_cs_get_mult_shift);
102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
by kernel test robot
Hi Arnd,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a581387e415bbb0085e7e67906c8f4a99746590e
commit: ec3e5c0f0c2b716e768c0eee0fec30d572939ef5 drm/amdgpu: make pmu support optional, again
date: 9 months ago
config: ia64-randconfig-r025-20200710 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ec3e5c0f0c2b716e768c0eee0fec30d572939ef5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs':
>> arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data':
arch/ia64/kernel/elfcore.c:55: undefined reference to `dump_emit'
vim +22 arch/ia64/kernel/elfcore.c
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 14
506f21c556c747 Al Viro 2013-10-05 15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 16 {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 17 const struct elf_phdr *const gate_phdrs =
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 18 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff);
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 19 int i;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 20 Elf64_Off ofs = 0;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 21
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 @22 for (i = 0; i < GATE_EHDR->e_phnum; ++i) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 23 struct elf_phdr phdr = gate_phdrs[i];
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 24
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 25 if (phdr.p_type == PT_LOAD) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 26 phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz);
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 27 phdr.p_filesz = phdr.p_memsz;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 28 if (ofs == 0) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 29 ofs = phdr.p_offset = offset;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 30 offset += phdr.p_filesz;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 31 } else {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 32 phdr.p_offset = ofs;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 33 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 34 } else {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 35 phdr.p_offset += ofs;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 36 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 37 phdr.p_paddr = 0; /* match other core phdrs */
506f21c556c747 Al Viro 2013-10-05 38 if (!dump_emit(cprm, &phdr, sizeof(phdr)))
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 39 return 0;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 40 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 41 return 1;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 42 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 43
:::::: The code at line 22 was first introduced by commit
:::::: 1fcccbac89f5bbc5e41aa72086960059fce372da elf coredump: replace ELF_CORE_EXTRA_* macros by functions
:::::: TO: Daisuke HATAYAMA <d.hatayama(a)jp.fujitsu.com>
:::::: 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, 2 months
[linux-next:master 4813/7247] include/linux/compiler.h:392:38: error: call to '__compiletime_assert_334' declared with attribute error: FIELD_PREP: value too large for the field
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d31958b30ea3b7b6e522d6bf449427748ad45822
commit: e860785d5730665e04e0ac301aa14ed3779c4d92 [4813/7247] drm/meson: overlay: setup overlay for Amlogic FBC
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e860785d5730665e04e0ac301aa14ed3779c4d92
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD d31958b30ea3b7b6e522d6bf449427748ad45822 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/gpu/drm/meson/meson_overlay.c:8:
drivers/gpu/drm/meson/meson_overlay.c: In function 'meson_overlay_setup_scaler_params':
>> include/linux/compiler.h:392:38: error: call to '__compiletime_assert_334' declared with attribute error: FIELD_PREP: value too large for the field
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:373:4: note: in definition of macro '__compiletime_assert'
373 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
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/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:147:37: note: in expansion of macro 'FIELD_PREP'
147 | #define AFBC_DEC_PIXEL_BGN_H(value) FIELD_PREP(GENMASK(28, 16), value)
| ^~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:413:4: note: in expansion of macro 'AFBC_DEC_PIXEL_BGN_H'
413 | AFBC_DEC_PIXEL_BGN_H(hd_start_lines - afbc_left) |
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:392:38: error: call to '__compiletime_assert_394' declared with attribute error: FIELD_PREP: value too large for the field
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:373:4: note: in definition of macro '__compiletime_assert'
373 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
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/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:61:28: note: in expansion of macro 'FIELD_PREP'
61 | #define VD_H_START(value) FIELD_PREP(GENMASK(27, 16), value)
| ^~~~~~~~~~
drivers/gpu/drm/meson/meson_overlay.c:434:40: note: in expansion of macro 'VD_H_START'
434 | priv->viu.vpp_blend_vd2_h_start_end = VD_H_START(hd_start_lines) |
| ^~~~~~~~~~
vim +/__compiletime_assert_334 +392 include/linux/compiler.h
9a8ab1c39970a49 Daniel Santos 2013-02-21 378
9a8ab1c39970a49 Daniel Santos 2013-02-21 379 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a49 Daniel Santos 2013-02-21 380 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a49 Daniel Santos 2013-02-21 381
9a8ab1c39970a49 Daniel Santos 2013-02-21 382 /**
9a8ab1c39970a49 Daniel Santos 2013-02-21 383 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a49 Daniel Santos 2013-02-21 384 * @condition: a compile-time constant condition to check
9a8ab1c39970a49 Daniel Santos 2013-02-21 385 * @msg: a message to emit if condition is false
9a8ab1c39970a49 Daniel Santos 2013-02-21 386 *
9a8ab1c39970a49 Daniel Santos 2013-02-21 387 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a49 Daniel Santos 2013-02-21 388 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a49 Daniel Santos 2013-02-21 389 * compiler has support to do so.
9a8ab1c39970a49 Daniel Santos 2013-02-21 390 */
9a8ab1c39970a49 Daniel Santos 2013-02-21 391 #define compiletime_assert(condition, msg) \
af9c5d2e3b35585 Vegard Nossum 2020-04-06 @392 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
9a8ab1c39970a49 Daniel Santos 2013-02-21 393
:::::: The code at line 392 was first introduced by commit
:::::: af9c5d2e3b355854ff0e4acfbfbfadcd5198a349 compiler.h: fix error in BUILD_BUG_ON() reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: 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, 2 months
[kvm-riscv:riscv_kvm_master 5/21] error: arch/riscv/include/uapi/asm/kvm.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier
by kernel test robot
tree: git://github.com/kvm-riscv/linux.git riscv_kvm_master
head: 36e7b3ba5f5456ef4f2d7989b06c4f1fea368e6f
commit: b58d6e216092eadb0679aea8043c7ba7584a0802 [5/21] RISC-V: Add initial skeletal KVM support
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b58d6e216092eadb0679aea8043c7ba7584a0802
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> error: arch/riscv/include/uapi/asm/kvm.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier
make[2]: *** [scripts/Makefile.headersinst:63: usr/include/asm/kvm.h] Error 1
make[2]: Target '__headers' not remade because of errors.
make[1]: *** [Makefile:1259: headers] Error 2
arch/riscv/kernel/asm-offsets.c:14:6: warning: no previous prototype for 'asm_offsets' [-Wmissing-prototypes]
14 | void asm_offsets(void)
| ^~~~~~~~~~~
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[hverkuil-media:for-v5.9g 19/23] drivers/staging/media/allegro-dvt/allegro-mail.c:165:2: error: implicit declaration of function 'memcpy'
by kernel test robot
tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.9g
head: b89aa206069e38a992a4c995322116dbfe6c2116
commit: 935ac8622c84a06b5f53e8ddeb2b1c605062c7ec [19/23] media: allegro: add config blob for channel
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 935ac8622c84a06b5f53e8ddeb2b1c605062c7ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/staging/media/allegro-dvt/allegro-mail.c: In function 'allegro_enc_create_channel':
>> drivers/staging/media/allegro-dvt/allegro-mail.c:165:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
165 | memcpy(&dst[i], msg->blob, msg->blob_size);
| ^~~~~~
drivers/staging/media/allegro-dvt/allegro-mail.c:15:1: note: 'memcpy' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
14 | #include "allegro-mail.h"
+++ |+#include <string.h>
15 |
cc1: some warnings being treated as errors
vim +/memcpy +165 drivers/staging/media/allegro-dvt/allegro-mail.c
157
158 static ssize_t
159 allegro_enc_create_channel(u32 *dst, struct mcu_msg_create_channel *msg)
160 {
161 unsigned int i = 0;
162
163 dst[i++] = msg->user_id;
164
> 165 memcpy(&dst[i], msg->blob, msg->blob_size);
166 i += msg->blob_size / sizeof(*dst);
167
168 return i * sizeof(*dst);
169 }
170
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 7218/7247] arch/arm64/kernel/mte.c:224:31: error: passing argument 1 of 'get_user_pages_remote' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d31958b30ea3b7b6e522d6bf449427748ad45822
commit: 628a164a8dbe75ab0a60883e64956d4229c34306 [7218/7247] Merge branch 'akpm-current/current'
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 628a164a8dbe75ab0a60883e64956d4229c34306
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kernel/mte.c: In function '__access_remote_tags':
>> arch/arm64/kernel/mte.c:224:31: error: passing argument 1 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
224 | ret = get_user_pages_remote(tsk, mm, addr, 1, gup_flags,
| ^~~
| |
| struct task_struct *
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1704:46: note: expected 'struct mm_struct *' but argument is of type 'struct task_struct *'
1704 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
arch/arm64/kernel/mte.c:224:36: warning: passing argument 2 of 'get_user_pages_remote' makes integer from pointer without a cast [-Wint-conversion]
224 | ret = get_user_pages_remote(tsk, mm, addr, 1, gup_flags,
| ^~
| |
| struct mm_struct *
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1705:22: note: expected 'long unsigned int' but argument is of type 'struct mm_struct *'
1705 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
arch/arm64/kernel/mte.c:224:49: warning: passing argument 5 of 'get_user_pages_remote' makes pointer from integer without a cast [-Wint-conversion]
224 | ret = get_user_pages_remote(tsk, mm, addr, 1, gup_flags,
| ^~~~~~~~~
| |
| unsigned int
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1706:46: note: expected 'struct page **' but argument is of type 'unsigned int'
1706 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
arch/arm64/kernel/mte.c:225:10: error: passing argument 6 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
225 | &page, &vma, NULL);
| ^~~~~
| |
| struct page **
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1707:32: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
1707 | struct vm_area_struct **vmas, int *locked);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
arch/arm64/kernel/mte.c:225:17: error: passing argument 7 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
225 | &page, &vma, NULL);
| ^~~~
| |
| struct vm_area_struct **
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1707:43: note: expected 'int *' but argument is of type 'struct vm_area_struct **'
1707 | struct vm_area_struct **vmas, int *locked);
| ~~~~~^~~~~~
>> arch/arm64/kernel/mte.c:224:9: error: too many arguments to function 'get_user_pages_remote'
224 | ret = get_user_pages_remote(tsk, mm, addr, 1, gup_flags,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/kernel/mte.c:8:
include/linux/mm.h:1704:6: note: declared here
1704 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/get_user_pages_remote +224 arch/arm64/kernel/mte.c
e76b573f11d1c5 Catalin Marinas 2020-03-30 197
e76b573f11d1c5 Catalin Marinas 2020-03-30 198 /*
e76b573f11d1c5 Catalin Marinas 2020-03-30 199 * Access MTE tags in another process' address space as given in mm. Update
e76b573f11d1c5 Catalin Marinas 2020-03-30 200 * the number of tags copied. Return 0 if any tags copied, error otherwise.
e76b573f11d1c5 Catalin Marinas 2020-03-30 201 * Inspired by __access_remote_vm().
e76b573f11d1c5 Catalin Marinas 2020-03-30 202 */
e76b573f11d1c5 Catalin Marinas 2020-03-30 203 static int __access_remote_tags(struct task_struct *tsk, struct mm_struct *mm,
e76b573f11d1c5 Catalin Marinas 2020-03-30 204 unsigned long addr, struct iovec *kiov,
e76b573f11d1c5 Catalin Marinas 2020-03-30 205 unsigned int gup_flags)
e76b573f11d1c5 Catalin Marinas 2020-03-30 206 {
e76b573f11d1c5 Catalin Marinas 2020-03-30 207 struct vm_area_struct *vma;
e76b573f11d1c5 Catalin Marinas 2020-03-30 208 void __user *buf = kiov->iov_base;
e76b573f11d1c5 Catalin Marinas 2020-03-30 209 size_t len = kiov->iov_len;
e76b573f11d1c5 Catalin Marinas 2020-03-30 210 int ret;
e76b573f11d1c5 Catalin Marinas 2020-03-30 211 int write = gup_flags & FOLL_WRITE;
e76b573f11d1c5 Catalin Marinas 2020-03-30 212
e76b573f11d1c5 Catalin Marinas 2020-03-30 213 if (!access_ok(buf, len))
e76b573f11d1c5 Catalin Marinas 2020-03-30 214 return -EFAULT;
e76b573f11d1c5 Catalin Marinas 2020-03-30 215
e76b573f11d1c5 Catalin Marinas 2020-03-30 216 if (mmap_read_lock_killable(mm))
e76b573f11d1c5 Catalin Marinas 2020-03-30 217 return -EIO;
e76b573f11d1c5 Catalin Marinas 2020-03-30 218
e76b573f11d1c5 Catalin Marinas 2020-03-30 219 while (len) {
e76b573f11d1c5 Catalin Marinas 2020-03-30 220 unsigned long tags, offset;
e76b573f11d1c5 Catalin Marinas 2020-03-30 221 void *maddr;
e76b573f11d1c5 Catalin Marinas 2020-03-30 222 struct page *page = NULL;
e76b573f11d1c5 Catalin Marinas 2020-03-30 223
e76b573f11d1c5 Catalin Marinas 2020-03-30 @224 ret = get_user_pages_remote(tsk, mm, addr, 1, gup_flags,
e76b573f11d1c5 Catalin Marinas 2020-03-30 225 &page, &vma, NULL);
e76b573f11d1c5 Catalin Marinas 2020-03-30 226 if (ret <= 0)
e76b573f11d1c5 Catalin Marinas 2020-03-30 227 break;
e76b573f11d1c5 Catalin Marinas 2020-03-30 228
e76b573f11d1c5 Catalin Marinas 2020-03-30 229 /*
e76b573f11d1c5 Catalin Marinas 2020-03-30 230 * Only copy tags if the page has been mapped as PROT_MTE
e76b573f11d1c5 Catalin Marinas 2020-03-30 231 * (PG_mte_tagged set). Otherwise the tags are not valid and
e76b573f11d1c5 Catalin Marinas 2020-03-30 232 * not accessible to user. Moreover, an mprotect(PROT_MTE)
e76b573f11d1c5 Catalin Marinas 2020-03-30 233 * would cause the existing tags to be cleared if the page
e76b573f11d1c5 Catalin Marinas 2020-03-30 234 * was never mapped with PROT_MTE.
e76b573f11d1c5 Catalin Marinas 2020-03-30 235 */
e76b573f11d1c5 Catalin Marinas 2020-03-30 236 if (!test_bit(PG_mte_tagged, &page->flags)) {
e76b573f11d1c5 Catalin Marinas 2020-03-30 237 ret = -EOPNOTSUPP;
e76b573f11d1c5 Catalin Marinas 2020-03-30 238 put_page(page);
e76b573f11d1c5 Catalin Marinas 2020-03-30 239 break;
e76b573f11d1c5 Catalin Marinas 2020-03-30 240 }
e76b573f11d1c5 Catalin Marinas 2020-03-30 241
e76b573f11d1c5 Catalin Marinas 2020-03-30 242 /* limit access to the end of the page */
e76b573f11d1c5 Catalin Marinas 2020-03-30 243 offset = offset_in_page(addr);
e76b573f11d1c5 Catalin Marinas 2020-03-30 244 tags = min(len, (PAGE_SIZE - offset) / MTE_GRANULE_SIZE);
e76b573f11d1c5 Catalin Marinas 2020-03-30 245
e76b573f11d1c5 Catalin Marinas 2020-03-30 246 maddr = page_address(page);
e76b573f11d1c5 Catalin Marinas 2020-03-30 247 if (write) {
e76b573f11d1c5 Catalin Marinas 2020-03-30 248 tags = mte_copy_tags_from_user(maddr + offset, buf, tags);
e76b573f11d1c5 Catalin Marinas 2020-03-30 249 set_page_dirty_lock(page);
e76b573f11d1c5 Catalin Marinas 2020-03-30 250 } else {
e76b573f11d1c5 Catalin Marinas 2020-03-30 251 tags = mte_copy_tags_to_user(buf, maddr + offset, tags);
e76b573f11d1c5 Catalin Marinas 2020-03-30 252 }
e76b573f11d1c5 Catalin Marinas 2020-03-30 253 put_page(page);
e76b573f11d1c5 Catalin Marinas 2020-03-30 254
e76b573f11d1c5 Catalin Marinas 2020-03-30 255 /* error accessing the tracer's buffer */
e76b573f11d1c5 Catalin Marinas 2020-03-30 256 if (!tags)
e76b573f11d1c5 Catalin Marinas 2020-03-30 257 break;
e76b573f11d1c5 Catalin Marinas 2020-03-30 258
e76b573f11d1c5 Catalin Marinas 2020-03-30 259 len -= tags;
e76b573f11d1c5 Catalin Marinas 2020-03-30 260 buf += tags;
e76b573f11d1c5 Catalin Marinas 2020-03-30 261 addr += tags * MTE_GRANULE_SIZE;
e76b573f11d1c5 Catalin Marinas 2020-03-30 262 }
e76b573f11d1c5 Catalin Marinas 2020-03-30 263 mmap_read_unlock(mm);
e76b573f11d1c5 Catalin Marinas 2020-03-30 264
e76b573f11d1c5 Catalin Marinas 2020-03-30 265 /* return an error if no tags copied */
e76b573f11d1c5 Catalin Marinas 2020-03-30 266 kiov->iov_len = buf - kiov->iov_base;
e76b573f11d1c5 Catalin Marinas 2020-03-30 267 if (!kiov->iov_len) {
e76b573f11d1c5 Catalin Marinas 2020-03-30 268 /* check for error accessing the tracee's address space */
e76b573f11d1c5 Catalin Marinas 2020-03-30 269 if (ret <= 0)
e76b573f11d1c5 Catalin Marinas 2020-03-30 270 return -EIO;
e76b573f11d1c5 Catalin Marinas 2020-03-30 271 else
e76b573f11d1c5 Catalin Marinas 2020-03-30 272 return -EFAULT;
e76b573f11d1c5 Catalin Marinas 2020-03-30 273 }
e76b573f11d1c5 Catalin Marinas 2020-03-30 274
e76b573f11d1c5 Catalin Marinas 2020-03-30 275 return 0;
e76b573f11d1c5 Catalin Marinas 2020-03-30 276 }
e76b573f11d1c5 Catalin Marinas 2020-03-30 277
:::::: The code at line 224 was first introduced by commit
:::::: e76b573f11d1c560e3dfcf8e66702a8ed7c0c70d arm64: mte: Add PTRACE_{PEEK,POKE}MTETAGS support
:::::: TO: Catalin Marinas <catalin.marinas(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
ERROR: modpost: "min_low_pfn" undefined!
by kernel test robot
Hi Anshuman,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42f82040ee66db13525dc6f14b8559890b2f4c1c
commit: c62da0c35d58518ddb26ff641d2485596567fd96 mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS
date: 3 months ago
config: microblaze-randconfig-c004-20200710 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ERROR: modpost: "min_low_pfn" [net/sunrpc/xprtrdma/rpcrdma.ko] undefined!
ERROR: modpost: "min_low_pfn" [drivers/md/dm-integrity.ko] undefined!
>> ERROR: modpost: "min_low_pfn" [drivers/usb/misc/usbtest.ko] undefined!
ERROR: modpost: "min_low_pfn" [drivers/tty/serial/fsl_lpuart.ko] undefined!
ERROR: modpost: "min_low_pfn" [drivers/dma/fsl-edma-common.ko] undefined!
ERROR: modpost: "min_low_pfn" [crypto/asymmetric_keys/asym_tpm.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[alexshi:58lru 16/21] mm//swap.c:367:2: error: too many arguments to function '__activate_page'
by kernel test robot
tree: https://github.com/alexshi/linux.git 58lru
head: d89fa86f842f0474cc8fb76e2896e84209d99746
commit: f9f7d0891bce8957b6c28239c6bc99e4b4b8357c [16/21] mm/lru: replace pgdat lru_lock with lruvec lock
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f9f7d0891bce8957b6c28239c6bc99e4b4b8357c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/nds32/include/asm/page.h:57,
from include/linux/mm_types_task.h:16,
from include/linux/mm_types.h:5,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm//swap.c:17:
mm//internal.h: In function 'mem_map_next':
arch/nds32/include/asm/memory.h:82:32: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
82 | #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
| ^~
mm//internal.h:455:8: note: in expansion of macro 'pfn_valid'
455 | if (!pfn_valid(pfn))
| ^~~~~~~~~
mm//swap.c: In function 'activate_page':
>> mm//swap.c:367:2: error: too many arguments to function '__activate_page'
367 | __activate_page(page, lruvec, NULL);
| ^~~~~~~~~~~~~~~
mm//swap.c:308:13: note: declared here
308 | static void __activate_page(struct page *page, struct lruvec *lruvec)
| ^~~~~~~~~~~~~~~
mm//swap.c:362:13: warning: unused variable 'pgdat' [-Wunused-variable]
362 | pg_data_t *pgdat = page_pgdat(page);
| ^~~~~
vim +/__activate_page +367 mm//swap.c
359
360 void activate_page(struct page *page)
361 {
362 pg_data_t *pgdat = page_pgdat(page);
363 struct lruvec *lruvec;
364
365 page = compound_head(page);
366 lruvec = lock_page_lruvec_irq(page);
> 367 __activate_page(page, lruvec, NULL);
368 unlock_page_lruvec_irq(lruvec);
369 }
370 #endif
371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months