[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 12 Nov 2021 00:29:12 +0800
From: kernel test robot <lkp@...el.com>
To: Daniel Bristot de Oliveira <bristot@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
"Steven Rostedt (VMware)" <rostedt@...dmis.org>
Subject: kernel/trace/trace_osnoise.c:58:18: sparse: sparse: symbol
'osnoise_instances' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: debe436e77c72fcee804fb867f275e6d31aa999c
commit: dae181349f1e9d279f171afc708d2824ab35a86f tracing/osnoise: Support a list of trace_array *tr
date: 10 days ago
config: i386-randconfig-s002-20211103 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dae181349f1e9d279f171afc708d2824ab35a86f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout dae181349f1e9d279f171afc708d2824ab35a86f
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash kernel/trace/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/trace/trace_osnoise.c:58:18: sparse: sparse: symbol 'osnoise_instances' was not declared. Should it be static?
kernel/trace/trace_osnoise.c:296:14: sparse: sparse: symbol 'interface_lock' was not declared. Should it be static?
vim +/osnoise_instances +58 kernel/trace/trace_osnoise.c
50
51 /*
52 * trace_array of the enabled osnoise/timerlat instances.
53 */
54 struct osnoise_instance {
55 struct list_head list;
56 struct trace_array *tr;
57 };
> 58 struct list_head osnoise_instances;
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (34260 bytes)
Powered by blists - more mailing lists