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/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
Date: Thu, 14 May 2026 01:18:54 +0800 [thread overview]
Message-ID: <202605140127.Py50QBFB-lkp@intel.com> (raw)
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
reply other threads:[~2026-05-13 17:19 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=202605140127.Py50QBFB-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.