* [hch-misc:sysfs-seq 10/13] block/blk-sysfs.c:652:1: error: incompatible function pointer types initializing 'int (*)(struct request_queue *, struct seq_file *)' with an expression of type 'ssize_t (struct request_queue *, char *)' (aka 'int (struct request_queue *, char *)')
@ 2021-09-03 17:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03 17:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2567 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: i386-randconfig-a004-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
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=clang make.cross ARCH=i386
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:1: error: incompatible function pointer types initializing 'int (*)(struct request_queue *, struct seq_file *)' with an expression of type 'ssize_t (struct request_queue *, char *)' (aka 'int (struct request_queue *, char *)') [-Werror,-Wincompatible-function-pointer-types]
QUEUE_RW_ENTRY(blk_throtl_sample_time, "throttle_sample_time");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/blk-sysfs.c:605:10: note: expanded from macro 'QUEUE_RW_ENTRY'
.show = _prefix##_show, \
^~~~~~~~~~~~~~
<scratch space>:173:1: note: expanded from here
blk_throtl_sample_time_show
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
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: 35258 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-03 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 17:11 [hch-misc:sysfs-seq 10/13] block/blk-sysfs.c:652:1: error: incompatible function pointer types initializing 'int (*)(struct request_queue *, struct seq_file *)' with an expression of type 'ssize_t (struct request_queue *, char *)' (aka 'int (struct request_queue *, char *)') 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.