* [thomas-weissschuh:b4/b4-sysfs-const-attr-prep-easy 38/57] drivers/pci/slot.c:111:11: error: initializing 'struct attribute **' with an expression of type 'const struct attribute *const[4]' discards qualifiers in nested pointer types
@ 2026-06-23 23:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-23 23:00 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-prep-easy
head: 67a3c6abb9033d2ce2a9ac12d4cfb9530148b38f
commit: e336a966dae35aa3b0795b315b543fb744b61ff0 [38/57] pci
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260624/202606240700.55fyYCeN-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606240700.55fyYCeN-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/202606240700.55fyYCeN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pci/slot.c:111:11: error: initializing 'struct attribute **' with an expression of type 'const struct attribute *const[4]' discards qualifiers in nested pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
111 | .attrs = pci_slot_default_attrs,
| ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +111 drivers/pci/slot.c
e4f9ab031dc86c Niklas Schnelle 2026-04-07 109
e4f9ab031dc86c Niklas Schnelle 2026-04-07 110 static const struct attribute_group pci_slot_default_group = {
e4f9ab031dc86c Niklas Schnelle 2026-04-07 @111 .attrs = pci_slot_default_attrs,
e4f9ab031dc86c Niklas Schnelle 2026-04-07 112 };
e4f9ab031dc86c Niklas Schnelle 2026-04-07 113
:::::: The code at line 111 was first introduced by commit
:::::: e4f9ab031dc86c9987c3619e97c5c7d8ad7afda2 PCI: s390: Expose the UID as an arch specific PCI slot attribute
:::::: TO: Niklas Schnelle <schnelle@linux.ibm.com>
:::::: CC: Vasily Gorbik <gor@linux.ibm.com>
--
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-23 23:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 23:00 [thomas-weissschuh:b4/b4-sysfs-const-attr-prep-easy 38/57] drivers/pci/slot.c:111:11: error: initializing 'struct attribute **' with an expression of type 'const struct attribute *const[4]' discards qualifiers in nested pointer types 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