[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312022055.x0lPITvL-lkp@intel.com>
Date: Sun, 3 Dec 2023 14:31:26 +0800
From: kernel test robot <lkp@...el.com>
To: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...nel.org>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>
Subject: kernel/events/core.c:8288:1: sparse: sparse: symbol
'dev_attr_nr_addr_filters' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 815fb87b753055df2d9e50f6cd80eb10235fe3e9
commit: 6e855cd4f4b5258016cf707f94f96bfa51c32f32 perf/core: Let userspace know if the PMU supports address filters
date: 8 years ago
config: x86_64-alldefconfig (https://download.01.org/0day-ci/archive/20231202/202312022055.x0lPITvL-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231202/202312022055.x0lPITvL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312022055.x0lPITvL-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/events/core.c:518:26: sparse: sparse: function 'perf_pmu_name' with external linkage has definition
kernel/events/core.c:891:1: sparse: sparse: symbol 'perf_cgroup_switch' was not declared. Should it be static?
kernel/events/core.c:993:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got int * @@
kernel/events/core.c:993:22: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:993:22: sparse: got int *
kernel/events/core.c:1000:22: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got int * @@
kernel/events/core.c:1000:22: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:1000:22: sparse: got int *
kernel/events/core.c:2783:34: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:2783:34: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:2783:34: sparse: got struct perf_cpu_context *
kernel/events/core.c:3571:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:3571:26: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:3571:26: sparse: got struct perf_cpu_context *
kernel/events/core.c:5913:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:5913:26: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:5913:26: sparse: got struct perf_cpu_context *
kernel/events/core.c:6012:43: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:6012:43: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:6012:43: sparse: got struct perf_cpu_context *
kernel/events/core.c:8237:35: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct perf_cpu_context [noderef] <asn:3> * @@ got struct perf_cpu_context *[noderef] pmu_cpu_context @@
kernel/events/core.c:8237:35: sparse: expected struct perf_cpu_context [noderef] <asn:3> *
kernel/events/core.c:8237:35: sparse: got struct perf_cpu_context *[noderef] pmu_cpu_context
kernel/events/core.c:8250:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:8250:26: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:8250:26: sparse: got struct perf_cpu_context *
kernel/events/core.c:8272:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:3> *__pdata @@ got struct perf_cpu_context *[noderef] pmu_cpu_context @@
kernel/events/core.c:8272:24: sparse: expected void [noderef] <asn:3> *__pdata
kernel/events/core.c:8272:24: sparse: got struct perf_cpu_context *[noderef] pmu_cpu_context
>> kernel/events/core.c:8288:1: sparse: sparse: symbol 'dev_attr_nr_addr_filters' was not declared. Should it be static?
kernel/events/core.c:8339:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:8339:26: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:8339:26: sparse: got struct perf_cpu_context *
kernel/events/core.c:8418:32: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected int *[noderef] pmu_disable_count @@ got int [noderef] <asn:3> * @@
kernel/events/core.c:8418:32: sparse: expected int *[noderef] pmu_disable_count
kernel/events/core.c:8418:32: sparse: got int [noderef] <asn:3> *
kernel/events/core.c:8452:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct perf_cpu_context *[noderef] pmu_cpu_context @@ got struct perf_cpu_context [noderef] <asn:3> * @@
kernel/events/core.c:8452:30: sparse: expected struct perf_cpu_context *[noderef] pmu_cpu_context
kernel/events/core.c:8452:30: sparse: got struct perf_cpu_context [noderef] <asn:3> *
kernel/events/core.c:8457:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct perf_cpu_context *[noderef] pmu_cpu_context @@ got struct perf_cpu_context [noderef] <asn:3> * @@
kernel/events/core.c:8457:30: sparse: expected struct perf_cpu_context *[noderef] pmu_cpu_context
kernel/events/core.c:8457:30: sparse: got struct perf_cpu_context [noderef] <asn:3> *
kernel/events/core.c:8464:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:8464:26: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:8464:26: sparse: got struct perf_cpu_context *
kernel/events/core.c:8518:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:3> *__pdata @@ got int *[noderef] pmu_disable_count @@
kernel/events/core.c:8518:24: sparse: expected void [noderef] <asn:3> *__pdata
kernel/events/core.c:8518:24: sparse: got int *[noderef] pmu_disable_count
kernel/events/core.c:8536:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:3> *__pdata @@ got int *[noderef] pmu_disable_count @@
kernel/events/core.c:8536:24: sparse: expected void [noderef] <asn:3> *__pdata
kernel/events/core.c:8536:24: sparse: got int *[noderef] pmu_disable_count
kernel/events/core.c:9587:20: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:9587:20: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:9587:20: sparse: got struct perf_cpu_context *
kernel/events/core.c:9588:20: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:9588:20: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:9588:20: sparse: got struct perf_cpu_context *
kernel/events/core.c:152:9: sparse: sparse: context imbalance in 'perf_ctx_lock' - wrong count at exit
kernel/events/core.c:160:17: sparse: sparse: context imbalance in 'perf_ctx_unlock' - unexpected unlock
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:993:22: sparse: sparse: dereference of noderef expression
kernel/events/core.c:1000:22: sparse: sparse: dereference of noderef expression
kernel/events/core.c: note: in included file (through include/linux/rculist.h, include/linux/dcache.h, include/linux/fs.h):
include/linux/rcupdate.h:924:9: sparse: sparse: context imbalance in 'perf_lock_task_context' - different lock contexts for basic block
kernel/events/core.c:1281:17: sparse: sparse: context imbalance in 'perf_pin_task_context' - unexpected unlock
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:2191:9: sparse: sparse: context imbalance in '__perf_install_in_context' - wrong count at exit
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:2783:34: sparse: sparse: dereference of noderef expression
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
kernel/events/core.c:3571:26: sparse: sparse: dereference of noderef expression
kernel/events/core.c:3602:17: sparse: sparse: context imbalance in 'find_get_context' - unexpected unlock
kernel/events/core.c: note: in included file:
kernel/events/internal.h:188:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:1> *from @@ got void const *buf @@
kernel/events/internal.h:188:1: sparse: expected void const [noderef] <asn:1> *from
kernel/events/internal.h:188:1: sparse: got void const *buf
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/core.c:5913:26: sparse: sparse: dereference of noderef expression
kernel/events/core.c:5924:17: sparse: sparse: dereference of noderef expression
kernel/events/core.c:6012:43: sparse: sparse: dereference of noderef expression
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/internal.h:162:1: sparse: sparse: self-comparison always evaluates to true
kernel/events/core.c:8237:32: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8250:26: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8266:21: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8266:43: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8272:21: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8339:26: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8419:14: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8453:13: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8458:14: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8464:26: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8518:21: sparse: sparse: dereference of noderef expression
kernel/events/core.c:8536:21: sparse: sparse: dereference of noderef expression
kernel/events/core.c:9587:20: sparse: sparse: dereference of noderef expression
kernel/events/core.c:9588:20: sparse: sparse: dereference of noderef expression
kernel/events/core.c:145:16: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] <asn:3> *__vpp_verify @@ got struct perf_cpu_context * @@
kernel/events/core.c:145:16: sparse: expected void const [noderef] <asn:3> *__vpp_verify
kernel/events/core.c:145:16: sparse: got struct perf_cpu_context *
kernel/events/core.c:145:16: sparse: sparse: dereference of noderef expression
In file included from include/linux/kobject.h:21,
vim +/dev_attr_nr_addr_filters +8288 kernel/events/core.c
8276
8277 /*
8278 * Let userspace know that this PMU supports address range filtering:
8279 */
8280 static ssize_t nr_addr_filters_show(struct device *dev,
8281 struct device_attribute *attr,
8282 char *page)
8283 {
8284 struct pmu *pmu = dev_get_drvdata(dev);
8285
8286 return snprintf(page, PAGE_SIZE - 1, "%d\n", pmu->nr_addr_filters);
8287 }
> 8288 DEVICE_ATTR_RO(nr_addr_filters);
8289
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists