From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:sysfs-seq 10/13] block/blk-sysfs.c:652:16: error: initialization of 'int (*)(struct request_queue *, struct seq_file *)' from incompatible pointer type 'ssize_t (*)(struct request_queue *, char *)' {aka 'int (*)(struct request_queue *, char *)'}
Date: Sat, 04 Sep 2021 03:12:02 +0800 [thread overview]
Message-ID: <202109040341.QBiscP2m-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2775 bytes --]
tree: git://git.infradead.org/users/hch/misc.git sysfs-seq
head: f56471a295c5c63a0a900d5a4211a74368068f3b
commit: f57fc25dd5d4d19d69fe278a2f4f36d4af5ccaa7 [10/13] block: convert the request_queue attrs to use ->seq_show
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc sysfs-seq
git checkout f57fc25dd5d4d19d69fe278a2f4f36d4af5ccaa7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> block/blk-sysfs.c:652:16: error: initialization of 'int (*)(struct request_queue *, struct seq_file *)' from incompatible pointer type 'ssize_t (*)(struct request_queue *, char *)' {aka 'int (*)(struct request_queue *, char *)'} [-Werror=incompatible-pointer-types]
652 | QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
| ^~~~~~~~~~~~~~~~~~~~~~
block/blk-sysfs.c:605:19: note: in definition of macro 'QUEUE_RW_ENTRY'
605 | .show = _prefix##_show, \
| ^~~~~~~
block/blk-sysfs.c:652:16: note: (near initialization for 'blk_throtl_sample_time_entry.show')
652 | QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
| ^~~~~~~~~~~~~~~~~~~~~~
block/blk-sysfs.c:605:19: note: in definition of macro 'QUEUE_RW_ENTRY'
605 | .show = _prefix##_show, \
| ^~~~~~~
cc1: some warnings being treated as errors
vim +652 block/blk-sysfs.c
8324aa91d1e11a Jens Axboe 2008-01-29 650
3562614705c6f2 Christoph Hellwig 2020-09-03 651 #ifdef CONFIG_BLK_DEV_THROTTLING_LOW
3562614705c6f2 Christoph Hellwig 2020-09-03 @652 QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
3562614705c6f2 Christoph Hellwig 2020-09-03 653 #endif
8324aa91d1e11a Jens Axboe 2008-01-29 654
:::::: The code at line 652 was first introduced by commit
:::::: 3562614705c6f2324f79a959a2cf1ae24d142578 block: add helper macros for queue sysfs entries
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 71484 bytes --]
reply other threads:[~2021-09-03 19:12 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=202109040341.QBiscP2m-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.