From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh " <linux@weissschuh.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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...
Date: Wed, 24 Jun 2026 11:05:59 +0800 [thread overview]
Message-ID: <202606241123.ZtjpkcdO-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-24 3:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606241123.ZtjpkcdO-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux@weissschuh.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.