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-bin_attr-s390 6/7] drivers/s390/cio/chp.c:221:1: error: initializing 'struct bin_attribute **' with an expression of type 'const struct bin_attribute *const[5]' discards qualifiers in nested pointer types
Date: Thu, 12 Dec 2024 12:52:54 +0800 [thread overview]
Message-ID: <202412121231.DvDDVbb9-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/sysfs-const-bin_attr-s390
head: 8ae8d30bac9709d7b1824ebe3a28cc6f3017cd79
commit: 269b60415552dd90b391ef9ca088b2ee00497c03 [6/7] s390/cio/chp: Constify 'struct bin_attribute'
config: s390-randconfig-001-20241212 (https://download.01.org/0day-ci/archive/20241212/202412121231.DvDDVbb9-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241212/202412121231.DvDDVbb9-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/202412121231.DvDDVbb9-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/s390/cio/chp.c:221:1: error: initializing 'struct bin_attribute **' with an expression of type 'const struct bin_attribute *const[5]' discards qualifiers in nested pointer types [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
221 | BIN_ATTRIBUTE_GROUPS(measurement);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sysfs.h:296:15: note: expanded from macro 'BIN_ATTRIBUTE_GROUPS'
296 | .bin_attrs = _name##_attrs, \
| ^~~~~~~~~~~~~
<scratch space>:24:1: note: expanded from here
24 | measurement_attrs
| ^~~~~~~~~~~~~~~~~
1 error generated.
vim +221 drivers/s390/cio/chp.c
2dc8903af775ecd Peter Oberparleiter 2024-03-26 213
269b60415552dd9 Thomas Weißschuh 2024-12-11 214 static const struct bin_attribute *const measurement_attrs[] = {
b4691baaeef07bd Peter Oberparleiter 2024-03-26 215 &bin_attr_measurement_chars,
2f4b3b83b8c6e79 Peter Oberparleiter 2024-11-07 216 &bin_attr_measurement_chars_full,
b4691baaeef07bd Peter Oberparleiter 2024-03-26 217 &bin_attr_measurement,
2dc8903af775ecd Peter Oberparleiter 2024-03-26 218 &bin_attr_ext_measurement,
b4691baaeef07bd Peter Oberparleiter 2024-03-26 219 NULL,
e6b6e10ac1de116 Peter Oberparleiter 2007-04-27 220 };
b4691baaeef07bd Peter Oberparleiter 2024-03-26 @221 BIN_ATTRIBUTE_GROUPS(measurement);
e6b6e10ac1de116 Peter Oberparleiter 2007-04-27 222
:::::: The code at line 221 was first introduced by commit
:::::: b4691baaeef07bdc4c3524a0702d7dd6899610b4 s390/cio: simplify measurement attribute registration
:::::: TO: Peter Oberparleiter <oberpar@linux.ibm.com>
:::::: CC: Alexander Gordeev <agordeev@linux.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-12 4:53 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=202412121231.DvDDVbb9-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox