* [thomas-weissschuh:b4/b4-sysfs-const-attr-device_attr 7/12] drivers/perf/nvidia_t410_cmem_latency_pmu.c:447:25: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expr...
@ 2026-06-24 3:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-24 3:05 UTC (permalink / raw)
To: Thomas Weißschuh ; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/b4-sysfs-const-attr-device_attr
head: bc80ee47805905a6b1e67acf7d467ba57ffb6e7f
commit: 858ac3375fd495c1c894b364cae0f98d8ce471a9 [7/12] device_string
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260624/202606241123.ZtjpkcdO-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project a9b492db3d50683e446cd1a5c9ffaf4e92cb77a7)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606241123.ZtjpkcdO-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606241123.ZtjpkcdO-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/perf/nvidia_t410_cmem_latency_pmu.c:447:25: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expression of type 'ssize_t (struct device *, const struct device_attribute *, char *)' (aka 'long (struct device *, const struct device_attribute *, char *)') [-Wincompatible-function-pointer-types]
447 | NV_PMU_EXT_ATTR(event, device_show_string, "config:0-1"),
| ^~~~~~~~~~~~~~~~~~
1 error generated.
--
>> drivers/perf/nvidia_t410_c2c_pmu.c:560:2: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expression of type 'ssize_t (struct device *, const struct device_attribute *, char *)' (aka 'long (struct device *, const struct device_attribute *, char *)') [-Wincompatible-function-pointer-types]
560 | NV_C2C_PMU_FORMAT_EVENT_ATTR,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:557:2: note: expanded from macro 'NV_C2C_PMU_FORMAT_EVENT_ATTR'
557 | NV_C2C_PMU_FORMAT_ATTR(event, "config:0-3")
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:554:29: note: expanded from macro 'NV_C2C_PMU_FORMAT_ATTR'
554 | NV_C2C_PMU_EXT_ATTR(_name, device_show_string, _config)
| ^~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:561:2: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expression of type 'ssize_t (struct device *, const struct device_attribute *, char *)' (aka 'long (struct device *, const struct device_attribute *, char *)') [-Wincompatible-function-pointer-types]
561 | NV_C2C_PMU_FORMAT_ATTR(gpu_mask, "config1:0-1"),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:554:29: note: expanded from macro 'NV_C2C_PMU_FORMAT_ATTR'
554 | NV_C2C_PMU_EXT_ATTR(_name, device_show_string, _config)
| ^~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:571:2: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expression of type 'ssize_t (struct device *, const struct device_attribute *, char *)' (aka 'long (struct device *, const struct device_attribute *, char *)') [-Wincompatible-function-pointer-types]
571 | NV_C2C_PMU_FORMAT_EVENT_ATTR,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:557:2: note: expanded from macro 'NV_C2C_PMU_FORMAT_EVENT_ATTR'
557 | NV_C2C_PMU_FORMAT_ATTR(event, "config:0-3")
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/nvidia_t410_c2c_pmu.c:554:29: note: expanded from macro 'NV_C2C_PMU_FORMAT_ATTR'
554 | NV_C2C_PMU_EXT_ATTR(_name, device_show_string, _config)
| ^~~~~~~~~~~~~~~~~~
3 errors generated.
vim +447 drivers/perf/nvidia_t410_cmem_latency_pmu.c
429b7638b2df55 Besar Wicaksono 2026-03-24 437
429b7638b2df55 Besar Wicaksono 2026-03-24 438 #define NV_PMU_EXT_ATTR(_name, _func, _config) \
429b7638b2df55 Besar Wicaksono 2026-03-24 439 (&((struct dev_ext_attribute[]){ \
429b7638b2df55 Besar Wicaksono 2026-03-24 440 { \
429b7638b2df55 Besar Wicaksono 2026-03-24 441 .attr = __ATTR(_name, 0444, _func, NULL), \
429b7638b2df55 Besar Wicaksono 2026-03-24 442 .var = (void *)_config \
429b7638b2df55 Besar Wicaksono 2026-03-24 443 } \
429b7638b2df55 Besar Wicaksono 2026-03-24 444 })[0].attr.attr)
429b7638b2df55 Besar Wicaksono 2026-03-24 445
429b7638b2df55 Besar Wicaksono 2026-03-24 446 static struct attribute *cmem_lat_pmu_formats[] = {
429b7638b2df55 Besar Wicaksono 2026-03-24 @447 NV_PMU_EXT_ATTR(event, device_show_string, "config:0-1"),
429b7638b2df55 Besar Wicaksono 2026-03-24 448 NULL
429b7638b2df55 Besar Wicaksono 2026-03-24 449 };
429b7638b2df55 Besar Wicaksono 2026-03-24 450
:::::: The code at line 447 was first introduced by commit
:::::: 429b7638b2df5538e945aaa2cc189cf0d6e8fb3a perf: add NVIDIA Tegra410 CPU Memory Latency PMU
:::::: TO: Besar Wicaksono <bwicaksono@nvidia.com>
:::::: CC: Will Deacon <will@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24 3:05 [thomas-weissschuh:b4/b4-sysfs-const-attr-device_attr 7/12] drivers/perf/nvidia_t410_cmem_latency_pmu.c:447:25: error: incompatible function pointer types initializing 'ssize_t (*)(struct device *, struct device_attribute *, char *)' (aka 'long (*)(struct device *, struct device_attribute *, char *)') with an expr kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox