tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/next
head: f767d4297615ac320f3f62751281213e4d514b08
commit: 563d4bfd6712a760bd14ac7c9e6afb51453f9165 [7/11] locking/lockdep: Mark
local_lock_t
config: arm64-randconfig-r033-20201209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
1968804ac726e7674d5de22bc2204b45857da344)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue locking/next
git checkout 563d4bfd6712a760bd14ac7c9e6afb51453f9165
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
> fs/squashfs/decompressor_multi_percpu.c:46:3: error: too many
arguments provided to function-like macro invocation
local_lock_init(&stream->lock);
^
include/linux/local_lock.h:10:32: note: expanded from macro 'local_lock_init'
#define local_lock_init(lock) __local_lock_init(lock)
^
include/linux/local_lock_internal.h:36:10: note: expanded from macro
'__local_lock_init'
LD_LOCK_PERCPU); \
^
include/linux/lockdep.h:350:10: note: macro 'lockdep_init_map_type' defined
here
# define lockdep_init_map_type(lock, name, key, sub, inner, outer) \
^
> fs/squashfs/decompressor_multi_percpu.c:46:3: error: use of
undeclared identifier 'lockdep_init_map_type'; did you mean
'lockdep_init_task'?
local_lock_init(&stream->lock);
^
include/linux/local_lock.h:10:32: note: expanded from macro 'local_lock_init'
#define local_lock_init(lock) __local_lock_init(lock)
^
include/linux/local_lock_internal.h:34:2: note: expanded from macro
'__local_lock_init'
lockdep_init_map_type(&(lock)->dep_map, #lock, &__key, 0, \
^
include/linux/lockdep.h:328:20: note: 'lockdep_init_task' declared here
static inline void lockdep_init_task(struct task_struct *task)
^
2 errors generated.
vim +46 fs/squashfs/decompressor_multi_percpu.c
d208383d640727 Phillip Lougher 2013-11-18 27
d208383d640727 Phillip Lougher 2013-11-18 28 void *squashfs_decompressor_create(struct
squashfs_sb_info *msblk,
d208383d640727 Phillip Lougher 2013-11-18 29 void *comp_opts)
d208383d640727 Phillip Lougher 2013-11-18 30 {
d208383d640727 Phillip Lougher 2013-11-18 31 struct squashfs_stream *stream;
d208383d640727 Phillip Lougher 2013-11-18 32 struct squashfs_stream __percpu *percpu;
d208383d640727 Phillip Lougher 2013-11-18 33 int err, cpu;
d208383d640727 Phillip Lougher 2013-11-18 34
d208383d640727 Phillip Lougher 2013-11-18 35 percpu = alloc_percpu(struct
squashfs_stream);
d208383d640727 Phillip Lougher 2013-11-18 36 if (percpu == NULL)
d208383d640727 Phillip Lougher 2013-11-18 37 return ERR_PTR(-ENOMEM);
d208383d640727 Phillip Lougher 2013-11-18 38
d208383d640727 Phillip Lougher 2013-11-18 39 for_each_possible_cpu(cpu) {
d208383d640727 Phillip Lougher 2013-11-18 40 stream = per_cpu_ptr(percpu, cpu);
d208383d640727 Phillip Lougher 2013-11-18 41 stream->stream =
msblk->decompressor->init(msblk, comp_opts);
d208383d640727 Phillip Lougher 2013-11-18 42 if (IS_ERR(stream->stream)) {
d208383d640727 Phillip Lougher 2013-11-18 43 err = PTR_ERR(stream->stream);
d208383d640727 Phillip Lougher 2013-11-18 44 goto out;
d208383d640727 Phillip Lougher 2013-11-18 45 }
fd56200a16c72c Julia Cartwright 2020-05-27 @46 local_lock_init(&stream->lock);
d208383d640727 Phillip Lougher 2013-11-18 47 }
d208383d640727 Phillip Lougher 2013-11-18 48
d208383d640727 Phillip Lougher 2013-11-18 49 kfree(comp_opts);
d208383d640727 Phillip Lougher 2013-11-18 50 return (__force void *) percpu;
d208383d640727 Phillip Lougher 2013-11-18 51
d208383d640727 Phillip Lougher 2013-11-18 52 out:
d208383d640727 Phillip Lougher 2013-11-18 53 for_each_possible_cpu(cpu) {
d208383d640727 Phillip Lougher 2013-11-18 54 stream = per_cpu_ptr(percpu, cpu);
d208383d640727 Phillip Lougher 2013-11-18 55 if (!IS_ERR_OR_NULL(stream->stream))
d208383d640727 Phillip Lougher 2013-11-18 56
msblk->decompressor->free(stream->stream);
d208383d640727 Phillip Lougher 2013-11-18 57 }
d208383d640727 Phillip Lougher 2013-11-18 58 free_percpu(percpu);
d208383d640727 Phillip Lougher 2013-11-18 59 return ERR_PTR(err);
d208383d640727 Phillip Lougher 2013-11-18 60 }
d208383d640727 Phillip Lougher 2013-11-18 61
:::::: The code at line 46 was first introduced by commit
:::::: fd56200a16c72c7c3ec3e54e06160dfaa5b8dee8 squashfs: Make use of local lock in
multi_cpu decompressor
:::::: TO: Julia Cartwright <julia(a)ni.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org