[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202208102109.mnxcQi3g-lkp@intel.com>
Date: Wed, 10 Aug 2022 21:16:39 +0800
From: kernel test robot <lkp@...el.com>
To: Qing Zhang <zhangqing@...ngson.cn>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>
Cc: kbuild-all@...ts.01.org, loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Jiaxun Yang <jiaxun.yang@...goat.com>, hejinyang@...ngson.cn
Subject: Re: [PATCH 3/3] LoongArch: Add stacktrace support
Hi Qing,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.19]
[cannot apply to next-20220810]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Qing-Zhang/LoongArch-Add-guess-unwinder-support/20220728-220739
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6e7765cb477a9753670d4351d14de93f1e9dbbd4
config: loongarch-randconfig-s042-20220810 (https://download.01.org/0day-ci/archive/20220810/202208102109.mnxcQi3g-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/intel-lab-lkp/linux/commit/32ef6acf6f5ecfadda21be77cbebb07b1c69e56a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Qing-Zhang/LoongArch-Add-guess-unwinder-support/20220728-220739
git checkout 32ef6acf6f5ecfadda21be77cbebb07b1c69e56a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got unsigned int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got unsigned int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got unsigned int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got unsigned int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got int [noderef] __percpu *
>> kernel/events/core.c:223:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:223:9: sparse: expected void *ptr
kernel/events/core.c:223:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:320:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:320:9: sparse: expected void *ptr
kernel/events/core.c:320:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1074:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1074:9: sparse: expected void *ptr
kernel/events/core.c:1074:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1161:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1161:9: sparse: expected void *ptr
kernel/events/core.c:1161:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got unsigned int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1170:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
kernel/events/core.c:1170:9: sparse: expected void *ptr
kernel/events/core.c:1170:9: sparse: got int [noderef] __percpu *
kernel/events/core.c:1402:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:1402:15: sparse: struct perf_event_context [noderef] __rcu *
--
>> crypto/crypto_engine.c:56:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
crypto/crypto_engine.c:56:9: sparse: expected void *ptr
crypto/crypto_engine.c:56:9: sparse: got unsigned int [noderef] __percpu *
>> crypto/crypto_engine.c:56:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
crypto/crypto_engine.c:56:9: sparse: expected void *ptr
crypto/crypto_engine.c:56:9: sparse: got unsigned int [noderef] __percpu *
>> crypto/crypto_engine.c:56:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
crypto/crypto_engine.c:56:9: sparse: expected void *ptr
crypto/crypto_engine.c:56:9: sparse: got unsigned int [noderef] __percpu *
>> crypto/crypto_engine.c:56:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
crypto/crypto_engine.c:56:9: sparse: expected void *ptr
crypto/crypto_engine.c:56:9: sparse: got unsigned int [noderef] __percpu *
vim +223 kernel/events/core.c
fae3fde65138b60 Peter Zijlstra 2016-01-11 213
fae3fde65138b60 Peter Zijlstra 2016-01-11 214 static int event_function(void *info)
fae3fde65138b60 Peter Zijlstra 2016-01-11 215 {
fae3fde65138b60 Peter Zijlstra 2016-01-11 216 struct event_function_struct *efs = info;
fae3fde65138b60 Peter Zijlstra 2016-01-11 217 struct perf_event *event = efs->event;
fae3fde65138b60 Peter Zijlstra 2016-01-11 218 struct perf_event_context *ctx = event->ctx;
fae3fde65138b60 Peter Zijlstra 2016-01-11 219 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx);
fae3fde65138b60 Peter Zijlstra 2016-01-11 220 struct perf_event_context *task_ctx = cpuctx->task_ctx;
63b6da39bb38e8f Peter Zijlstra 2016-01-14 221 int ret = 0;
fae3fde65138b60 Peter Zijlstra 2016-01-11 222
164446455a5d3f1 Frederic Weisbecker 2017-11-06 @223 lockdep_assert_irqs_disabled();
fae3fde65138b60 Peter Zijlstra 2016-01-11 224
63b6da39bb38e8f Peter Zijlstra 2016-01-14 225 perf_ctx_lock(cpuctx, task_ctx);
fae3fde65138b60 Peter Zijlstra 2016-01-11 226 /*
fae3fde65138b60 Peter Zijlstra 2016-01-11 227 * Since we do the IPI call without holding ctx->lock things can have
fae3fde65138b60 Peter Zijlstra 2016-01-11 228 * changed, double check we hit the task we set out to hit.
fae3fde65138b60 Peter Zijlstra 2016-01-11 229 */
fae3fde65138b60 Peter Zijlstra 2016-01-11 230 if (ctx->task) {
63b6da39bb38e8f Peter Zijlstra 2016-01-14 231 if (ctx->task != current) {
0da4cf3e0a68c97 Peter Zijlstra 2016-02-24 232 ret = -ESRCH;
63b6da39bb38e8f Peter Zijlstra 2016-01-14 233 goto unlock;
fae3fde65138b60 Peter Zijlstra 2016-01-11 234 }
fae3fde65138b60 Peter Zijlstra 2016-01-11 235
fae3fde65138b60 Peter Zijlstra 2016-01-11 236 /*
fae3fde65138b60 Peter Zijlstra 2016-01-11 237 * We only use event_function_call() on established contexts,
fae3fde65138b60 Peter Zijlstra 2016-01-11 238 * and event_function() is only ever called when active (or
fae3fde65138b60 Peter Zijlstra 2016-01-11 239 * rather, we'll have bailed in task_function_call() or the
fae3fde65138b60 Peter Zijlstra 2016-01-11 240 * above ctx->task != current test), therefore we must have
fae3fde65138b60 Peter Zijlstra 2016-01-11 241 * ctx->is_active here.
fae3fde65138b60 Peter Zijlstra 2016-01-11 242 */
fae3fde65138b60 Peter Zijlstra 2016-01-11 243 WARN_ON_ONCE(!ctx->is_active);
fae3fde65138b60 Peter Zijlstra 2016-01-11 244 /*
fae3fde65138b60 Peter Zijlstra 2016-01-11 245 * And since we have ctx->is_active, cpuctx->task_ctx must
fae3fde65138b60 Peter Zijlstra 2016-01-11 246 * match.
fae3fde65138b60 Peter Zijlstra 2016-01-11 247 */
63b6da39bb38e8f Peter Zijlstra 2016-01-14 248 WARN_ON_ONCE(task_ctx != ctx);
63b6da39bb38e8f Peter Zijlstra 2016-01-14 249 } else {
63b6da39bb38e8f Peter Zijlstra 2016-01-14 250 WARN_ON_ONCE(&cpuctx->ctx != ctx);
fae3fde65138b60 Peter Zijlstra 2016-01-11 251 }
63b6da39bb38e8f Peter Zijlstra 2016-01-14 252
fae3fde65138b60 Peter Zijlstra 2016-01-11 253 efs->func(event, cpuctx, ctx, efs->data);
63b6da39bb38e8f Peter Zijlstra 2016-01-14 254 unlock:
fae3fde65138b60 Peter Zijlstra 2016-01-11 255 perf_ctx_unlock(cpuctx, task_ctx);
fae3fde65138b60 Peter Zijlstra 2016-01-11 256
63b6da39bb38e8f Peter Zijlstra 2016-01-14 257 return ret;
fae3fde65138b60 Peter Zijlstra 2016-01-11 258 }
fae3fde65138b60 Peter Zijlstra 2016-01-11 259
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists