All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/sysfs-const-pci-hotplug 3/3] 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-05-13 17:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-13 17:18 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/sysfs-const-pci-hotplug
head:   f8baf38ff79f1d9bd3d1c4e0d36413a14bc26068
commit: f8baf38ff79f1d9bd3d1c4e0d36413a14bc26068 [3/3] PCI: Constify slot attributes
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260514/202605140127.Py50QBFB-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605140127.Py50QBFB-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/202605140127.Py50QBFB-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

e4f9ab031dc86c9 Niklas Schnelle 2026-04-07  109  
e4f9ab031dc86c9 Niklas Schnelle 2026-04-07  110  static const struct attribute_group pci_slot_default_group = {
e4f9ab031dc86c9 Niklas Schnelle 2026-04-07 @111  	.attrs = pci_slot_default_attrs,
e4f9ab031dc86c9 Niklas Schnelle 2026-04-07  112  };
e4f9ab031dc86c9 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-05-13 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 17:18 [thomas-weissschuh:b4/sysfs-const-pci-hotplug 3/3] 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 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.